]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Define SOCK_CLOEXEC when missing
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 16 Aug 2013 13:35:06 +0000 (15:35 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 19 Aug 2013 12:33:23 +0000 (14:33 +0200)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/attach.c

index 950fe9aa94f3ffc4faf347b3e0848013024af998..3e9fb5f681e322774a3e7e7bdf7142cfa3b9d102 100644 (file)
 #include <sys/personality.h>
 #endif
 
+#ifndef SOCK_CLOEXEC
+#  define SOCK_CLOEXEC                02000000
+#endif
+
 lxc_log_define(lxc_attach, lxc);
 
 struct lxc_proc_context_info *lxc_proc_get_context_info(pid_t pid)