summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-10-24 00:45:57 +0000
committerTiago Cunha <tcunha@gmx.com>2010-10-24 00:45:57 +0000
commitd4b58c71a21b1f380612eb0e45b312e4c91e2a95 (patch)
tree3250dd46942f127d5faf97e8a5bfc196f54a6dbc /client.c
parent5fb4f8c1fa3e2a21be846f4fe13c4f6919ff54b2 (diff)
Sync OpenBSD patchset 775:
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/client.c b/client.c
index 6f9e3bbb..bd441ea6 100644
--- a/client.c
+++ b/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.97 2010-08-29 14:44:55 tcunha Exp $ */
+/* $Id: client.c,v 1.98 2010-10-24 00:45:57 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -94,8 +94,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);