diff options
author | 2003-09-26 08:19:29 +0000 | |
---|---|---|
committer | 2003-09-26 08:19:29 +0000 | |
commit | c2b5fded0664fc7fe0b7910fd000f97a6b45e539 (patch) | |
tree | 958cdef2c9a92b11f49ddd3b1533a4fc67413ff2 | |
parent | Enable dc(1) and bc(1) regressions (diff) | |
download | wireguard-openbsd-c2b5fded0664fc7fe0b7910fd000f97a6b45e539.tar.xz wireguard-openbsd-c2b5fded0664fc7fe0b7910fd000f97a6b45e539.zip |
no need to set the listen sockets to non-block; ok deraadt@
-rw-r--r-- | usr.bin/ssh/sshd.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index d58fa816401..6efa23a5537 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.278 2003/09/23 20:17:11 markus Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.279 2003/09/26 08:19:29 markus Exp $"); #include <openssl/dh.h> #include <openssl/bn.h> @@ -1078,11 +1078,6 @@ main(int ac, char **av) verbose("socket: %.100s", strerror(errno)); continue; } - if (fcntl(listen_sock, F_SETFL, O_NONBLOCK) < 0) { - error("listen_sock O_NONBLOCK: %s", strerror(errno)); - close(listen_sock); - continue; - } /* * Set socket options. * Allow local port reuse in TIME_WAIT. @@ -1221,11 +1216,6 @@ main(int ac, char **av) error("accept: %.100s", strerror(errno)); continue; } - if (fcntl(newsock, F_SETFL, 0) < 0) { - error("newsock del O_NONBLOCK: %s", strerror(errno)); - close(newsock); - continue; - } if (drop_connection(startups) == 1) { debug("drop connection #%d", startups); close(newsock); |