mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-25 23:14:54 +02:00
Revert "Fix ssh not exiting when sftp ends"
This reverts commit 2ee6bd1b093dfb1f9ea60b3d0ae2f133223848ae.
This commit is contained in:
parent
2ee6bd1b09
commit
264509c2f4
@ -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 ( c->isatty && len == 0 )
|
if (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 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user