From fde11f9a5c715c3deacd58f2263d39004ad771a9 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 23 Jan 2010 00:34:29 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20leak=20IPC=20socket=20?= =?utf8?q?to=20launched=20processes?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/ipc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipc.c b/src/ipc.c index 9e56fd0e..b4356fda 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -229,6 +229,8 @@ int ipc_create_socket(const char *filename) { return -1; } + (void)fcntl(sockfd, F_SETFD, FD_CLOEXEC); + struct sockaddr_un addr; memset(&addr, 0, sizeof(struct sockaddr_un)); addr.sun_family = AF_LOCAL; -- 2.39.5