From f56b4ec2ffa6d5667a3bd86040a1c771c1de33a5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 16 Oct 2010 08:31:55 +0000 Subject: Trying to set FD_CLOEXEC on every fd is a lost cause, just use closefrom() before exec. --- client.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index e6b17c59..d9682b49 100644 --- a/client.c +++ b/client.c @@ -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); -- cgit v1.2.3