Bugfix: Don’t leak IPC socket to launched processes
This commit is contained in:
parent
fbe8dafe63
commit
fde11f9a5c
|
@ -229,6 +229,8 @@ int ipc_create_socket(const char *filename) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(void)fcntl(sockfd, F_SETFD, FD_CLOEXEC);
|
||||||
|
|
||||||
struct sockaddr_un addr;
|
struct sockaddr_un addr;
|
||||||
memset(&addr, 0, sizeof(struct sockaddr_un));
|
memset(&addr, 0, sizeof(struct sockaddr_un));
|
||||||
addr.sun_family = AF_LOCAL;
|
addr.sun_family = AF_LOCAL;
|
||||||
|
|
Loading…
Reference in New Issue