diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-10-16 08:31:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-10-16 08:31:55 +0000 |
commit | f56b4ec2ffa6d5667a3bd86040a1c771c1de33a5 (patch) | |
tree | a06294130e18067eca755eb7e91ad6faa548e55c /client.c | |
parent | 6c42f1a89e16d69d5fe24bb8b3f6b37148cfa308 (diff) |
Trying to set FD_CLOEXEC on every fd is a lost cause, just use
closefrom() before exec.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -90,8 +90,6 @@ server_started: fatal("fcntl failed"); if (fcntl(fd, F_SETFL, mode|O_NONBLOCK) == -1) fatal("fcntl failed"); - if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) - fatal("fcntl failed"); imsg_init(&client_ibuf, fd); event_set(&client_event, fd, EV_READ, client_callback, NULL); |