diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.388 2011/09/30 21:22:49 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.389 2012/04/11 13:26:40 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1174,7 +1174,10 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s) | |||
1174 | if (*newsock < 0) { | 1174 | if (*newsock < 0) { |
1175 | if (errno != EINTR && errno != EAGAIN && | 1175 | if (errno != EINTR && errno != EAGAIN && |
1176 | errno != EWOULDBLOCK) | 1176 | errno != EWOULDBLOCK) |
1177 | error("accept: %.100s", strerror(errno)); | 1177 | error("accept: %.100s", |
1178 | strerror(errno)); | ||
1179 | if (errno == EMFILE || errno == ENFILE) | ||
1180 | usleep(100 * 1000); | ||
1178 | continue; | 1181 | continue; |
1179 | } | 1182 | } |
1180 | if (unset_nonblock(*newsock) == -1) { | 1183 | if (unset_nonblock(*newsock) == -1) { |