ipc: set CLOEXEC on client file descriptors (Thanks biiter)
This commit is contained in:
parent
0adbffb386
commit
84cf3ec3cb
|
@ -823,6 +823,9 @@ void ipc_new_client(EV_P_ struct ev_io *w, int revents) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Close this file descriptor on exec() */
|
||||||
|
(void)fcntl(client, F_SETFD, FD_CLOEXEC);
|
||||||
|
|
||||||
set_nonblock(client);
|
set_nonblock(client);
|
||||||
|
|
||||||
struct ev_io *package = scalloc(sizeof(struct ev_io));
|
struct ev_io *package = scalloc(sizeof(struct ev_io));
|
||||||
|
|
Loading…
Reference in New Issue