summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-10-16 08:31:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-10-16 08:31:56 +0000
commit1cb40c40d55beae032d4ae8da6145b07262eab91 (patch)
tree7b81115c64406a9b6d040827af881603cd9b471f /usr.bin/tmux/server.c
parentf206d52b5e845a0e72e9b40207870d2d1d441149 (diff)
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();