Sprinkle CLOEXEC around.

This commit is contained in:
Ian Gulliver
2016-02-23 12:00:17 -08:00
parent f676cc531a
commit 77ee1422c1
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ void peer_init() {
assert(peer_epoll_fd >= 0);
int cancel_fds[2];
assert(!pipe2(cancel_fds, O_NONBLOCK));
assert(!pipe2(cancel_fds, O_CLOEXEC));
struct peer *cancel_peer = malloc(sizeof(*cancel_peer));
assert(cancel_peer);