summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-05-06 17:57:22 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-05-06 17:57:22 -0700
commit46d72e82f4069d281f61a9fdbae11157241f3553 (patch)
tree16795bc4d0127f3f39051bc938f6ed17fa54eccf /session.c
parentb4ac133b92e08a34054d0af9481ab59b03571818 (diff)
Bug 10145: xdm passes file descriptors to children
X.Org Bugzilla #10145 <https://bugs.freedesktop.org/show_bug.cgi?id=10145> Patch #14644 <https://bugs.freedesktop.org/attachment.cgi?id=14644> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
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);