summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-10-16 08:31:55 +0000
committernicm <nicm@openbsd.org>2010-10-16 08:31:55 +0000
commit498ee386b9918bef2572558cec924a9cc88f5a02 (patch)
tree804ef79e7c2445a67e8588c736336e237efe5fa5 /usr.bin/tmux/client.c
parentFall back on normal session choice method if $TMUX exists but is invalid (diff)
downloadwireguard-openbsd-498ee386b9918bef2572558cec924a9cc88f5a02.tar.xz
wireguard-openbsd-498ee386b9918bef2572558cec924a9cc88f5a02.zip
Trying to set FD_CLOEXEC on every fd is a lost cause, just use
closefrom() before exec.
Diffstat (limited to 'usr.bin/tmux/client.c')
-rw-r--r--usr.bin/tmux/client.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c
index bbd0ae03999..c71c510abfb 100644
--- a/usr.bin/tmux/client.c
+++ b/usr.bin/tmux/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.44 2010/08/23 17:36:32 nicm Exp $ */
+/* $OpenBSD: client.c,v 1.45 2010/10/16 08:31:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);