summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-06 03:34:40 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-06 03:34:40 +0000
commitebc882757b79ef9b97e6a109c78cb740d113adab (patch)
tree8d8147eb984ed7b5202903733a54645c99bf1760 /clientloop.c
parent884a4aca88e98b4954a061847f91cad72c87053d (diff)
- millert@cvs.openbsd.org 2001/03/06 01:08:27
[clientloop.c] If read() fails with EINTR deal with it the same way we treat EAGAIN
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientloop.c b/clientloop.c
index cdd32dbb..4805f3c8 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: clientloop.c,v 1.52 2001/02/28 08:45:39 markus Exp $");
+RCSID("$OpenBSD: clientloop.c,v 1.53 2001/03/06 01:08:27 millert Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -491,7 +491,7 @@ client_process_net_input(fd_set * readset)
* There is a kernel bug on Solaris that causes select to
* sometimes wake up even though there is no data available.
*/
- if (len < 0 && errno == EAGAIN)
+ if (len < 0 && (errno == EAGAIN || errno == EINTR))
len = 0;
if (len < 0) {