diff --git a/src/ipc.c b/src/ipc.c index 0bef2ea2..c048cdf7 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -228,6 +228,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;