summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9a791ad..e2cea15 100644
--- a/src/main.c
+++ b/src/main.c
@@ -662,6 +662,8 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
+ set_close_on_exec (ConnectionNumber (dpy));
+
/* Set ratpoison specific Atoms. */
rp_command = XInternAtom (dpy, "RP_COMMAND", False);
rp_command_request = XInternAtom (dpy, "RP_COMMAND_REQUEST", False);