summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.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/server.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/server.c')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index f13b3b98bd2..3b337648a6d 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.94 2010/09/26 20:43:30 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.95 2010/10/16 08:31:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -98,8 +98,6 @@ server_create_socket(void)
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");
server_update_socket();