diff options
author | 2011-05-15 08:09:01 +0000 | |
---|---|---|
committer | 2011-05-15 08:09:01 +0000 | |
commit | 5d60427e394da094c70ada2611b003129a88e394 (patch) | |
tree | 0929c11c9051f66ad9fe1abd36f005199f5d1ff7 /usr.bin/ssh/serverloop.c | |
parent | regen (diff) | |
download | wireguard-openbsd-5d60427e394da094c70ada2611b003129a88e394.tar.xz wireguard-openbsd-5d60427e394da094c70ada2611b003129a88e394.zip |
use FD_CLOEXEC consistently; patch from zion AT x96.org
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r-- | usr.bin/ssh/serverloop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index c118b60c2c6..f0299e55833 100644 --- a/usr.bin/ssh/serverloop.c +++ b/usr.bin/ssh/serverloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: serverloop.c,v 1.159 2009/05/28 16:50:16 andreas Exp $ */ +/* $OpenBSD: serverloop.c,v 1.160 2011/05/15 08:09:01 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -127,8 +127,8 @@ notify_setup(void) { if (pipe(notify_pipe) < 0) { error("pipe(notify_pipe) failed %s", strerror(errno)); - } else if ((fcntl(notify_pipe[0], F_SETFD, 1) == -1) || - (fcntl(notify_pipe[1], F_SETFD, 1) == -1)) { + } else if ((fcntl(notify_pipe[0], F_SETFD, FD_CLOEXEC) == -1) || + (fcntl(notify_pipe[1], F_SETFD, FD_CLOEXEC) == -1)) { error("fcntl(notify_pipe, F_SETFD) failed %s", strerror(errno)); close(notify_pipe[0]); close(notify_pipe[1]); |