Skip to content

Commit 2ee6bd1

Browse files
committed
Fix ssh not exiting when sftp ends
It was a regression bug..
1 parent f4fa821 commit 2ee6bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

channels.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ channel_handle_rfd(Channel *c, fd_set *readset, fd_set *writeset)
16861686
errno = 0;
16871687
len = read(c->rfd, buf, sizeof(buf));
16881688
#ifdef WIN32_FIXME
1689-
if (len == 0)
1689+
if ( c->isatty && len == 0 )
16901690
return 1; // in Win32 console read, there may be no data, but is ok
16911691
#endif
16921692
if (len < 0 && (errno == EINTR ||

0 commit comments

Comments
 (0)