[Bug 223] ProxyCommand commands don't exit

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu May 23 20:05:44 EST 2002


------- Additional Comments From dtucker at zip.com.au  2002-05-23 20:05 -------
I had a poke around and came up with the attached patch to send a SIGTERM to the 
ProxyCommand child when ssh exits. I also added an explicit exec to the shell 
command passed to sh -c, which prevents the shell hanging around on Solaris. 
This problem doesn't seem to exist on Linux but I think the exec is safe for any 

The remaining problem is that the child process can send an error message to 
stderr after the SIGTERM. I'm not sure what (if anything) can be done about 

$ ./ssh -o 'ProxyCommand nc localhost 22' localhost echo

Feedback welcome but since this is my first attempt to actually modify openssh 
please be nice :-).

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the openssh-unix-dev mailing list