From: RĂ©mi Denis-Courmont Date: Sat, 13 Feb 2010 10:23:51 +0000 (+0200) Subject: Open the X11 socket with close-on-exec flag X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a9834e4cdd11aba8c1cc49347f09a958107de8;hp=53a9834e4cdd11aba8c1cc49347f09a958107de8;p=free-sw%2Fxcb%2Flibxcb Open the X11 socket with close-on-exec flag This saves the X11 connection from leaking into children processes. On Linux, this is fully thread-safe using SOCK_CLOEXEC. On other systems, there is a small race condition. Signed-off-by: Julien Danjou ---