Fix ssh not exiting when sftp ends

It was a regression bug..
This commit is contained in:
quamrulmina 2015-11-06 11:00:14 -06:00
parent f4fa821b6a
commit 2ee6bd1b09
1 changed files with 1 additions and 1 deletions

View File

@ -1686,7 +1686,7 @@ channel_handle_rfd(Channel *c, fd_set *readset, fd_set *writeset)
errno = 0; errno = 0;
len = read(c->rfd, buf, sizeof(buf)); len = read(c->rfd, buf, sizeof(buf));
#ifdef WIN32_FIXME #ifdef WIN32_FIXME
if (len == 0) if ( c->isatty && len == 0 )
return 1; // in Win32 console read, there may be no data, but is ok return 1; // in Win32 console read, there may be no data, but is ok
#endif #endif
if (len < 0 && (errno == EINTR || if (len < 0 && (errno == EINTR ||