Unix PSCP was tight-looping when connecting through a ProxyCommand.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 10 Dec 2004 11:41:14 +0000 (11:41 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4965 cda61777-01e9-0310-a592-d414129be87e

unix/uxproxy.c

index 1191a61..617f5cc 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);