diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-02-20 12:01:52 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-02-20 12:01:52 +0100 |
commit | 3339bbbf9ee58d4562ed008ce45c5af7fbe222c9 (patch) | |
tree | 2afa4b775ddd35afb104a23934f1883f80bbdc6f /src/main.c | |
parent | f5fc5561be15f1b353a29e99679783878ed7503f (diff) | |
download | ratpoison-3339bbbf9ee58d4562ed008ce45c5af7fbe222c9.zip |
Mark the X socket as to be closed on exec.
* Avoids leaking a descriptor, and potential problems described in the
comp.windows.x FAQ.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |