]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Unix PSCP was tight-looping when connecting through a ProxyCommand.
authorSimon Tatham <anakin@pobox.com>
Fri, 10 Dec 2004 11:41:14 +0000 (11:41 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 10 Dec 2004 11:41:14 +0000 (11:41 +0000)
Turned out that sk_localproxy_close() was closing the pipe fds
without removing them from the uxsel list.

[originally from svn r4965]

unix/uxproxy.c

index 1191a61ab632f7d952c3e389e7577f058433d998..617f5ccf07d04b7a23ec985aab63bde0e88822b3 100644 (file)
@@ -98,6 +98,8 @@ static void sk_localproxy_close (Socket s)
     del234(localproxy_by_fromfd, ps);
     del234(localproxy_by_tofd, ps);
 
+    uxsel_del(ps->to_cmd);
+    uxsel_del(ps->from_cmd);
     close(ps->to_cmd);
     close(ps->from_cmd);