Bugfix: Don’t leak IPC socket to launched processes

This commit is contained in:
Michael Stapelberg 2010-01-23 00:34:29 +01:00
parent ee5880364a
commit f399c3ef9d

View File

@ -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;