diff lib/sshv2.c @ 546:5d13fa48c275

2004-9-6 Brian Masney <masneyb@gftp.org> * lib/protocols.c lib/sshv2.c lib/sslcommon.c - cleanups to the functions that write/read to/from the network. Retry the operation if EAGAIN is returned * lib/ftps.c - return an error if the SSL session cannot be setup properly
author masneyb
date Wed, 08 Sep 2004 00:18:10 +0000
parents e46278e7ef1d
children b2b4f5fa8fc7
line wrap: on
line diff
--- a/lib/sshv2.c	Tue Sep 07 23:30:40 2004 +0000
+++ b/lib/sshv2.c	Wed Sep 08 00:18:10 2004 +0000
@@ -346,7 +346,7 @@
       FD_SET (ptymfd, &eset);
 
       ret = select (maxfd + 1, &rset, NULL, &eset, NULL);
-      if (ret < 0 && errno == EINTR)
+      if (ret < 0 && (errno == EINTR || errno == EAGAIN))
         continue;
 
       if (ret < 0)