mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Improve handling of oobinline sockets; Plink in telnet mode now
doesn't hang when you hit ^C, which is nice. I think a better solution would involve nonblocking sockets; as it stands it's a little dependent on what may be quirks of the Linux socket layer. [originally from svn r2175]
This commit is contained in:
@ -532,12 +532,17 @@ int main(int argc, char **argv)
|
||||
|
||||
for (i = 0; i < skcount; i++) {
|
||||
socket = sklist[i];
|
||||
/*
|
||||
* We must process exceptional notifications before
|
||||
* ordinary readability ones, or we may go straight
|
||||
* past the urgent marker.
|
||||
*/
|
||||
if (FD_ISSET(socket, &xset))
|
||||
select_result(socket, 4);
|
||||
if (FD_ISSET(socket, &rset))
|
||||
select_result(socket, 1);
|
||||
if (FD_ISSET(socket, &wset))
|
||||
select_result(socket, 2);
|
||||
if (FD_ISSET(socket, &xset))
|
||||
select_result(socket, 4);
|
||||
}
|
||||
|
||||
if (FD_ISSET(0, &rset)) {
|
||||
|
Reference in New Issue
Block a user