summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index 195c26f..b48a3ef 100644
--- a/session.c
+++ b/session.c
@@ -846,6 +846,10 @@ runAndWait (char **args, char **environ)
switch (pid = fork ()) {
case 0:
CleanUpChild ();
+#ifdef XDMCP
+ /* The chooser socket is not closed by CleanUpChild() */
+ DestroyWellKnownSockets();
+#endif
execute (args, environ);
LogError ("can't execute \"%s\" (err %d)\n", args[0], errno);
exit (1);