OpenSSH fork hangs when issued from cmd
Mark Bradshaw
bradshaw@staff.crosswalk.com
Wed Aug 7 11:59:00 GMT 2002
Ssh hangs when you request a background fork, and you issue the command from
the command line (cmd.exe). If you're in bash there's no problem. I've
tracked the problem down to a select call in clientloop.c, but don't have a
good idea on how to proceed with squashing the bug.
You can duplicate (hopefully) the bug by using the command:
ssh -f -N -L 25:localhost:25 user@server
In bash it'll connect up, set up the port forward, then daemonize itself.
In cmd it connects, sets up the port forward, creates a child process to
hold that port forward, but then hangs on the select before the parent can
die.
The line that it hangs on is line 371 in clientloop.c (3.4p1-5):
if (select((*maxfdp)+1, *readsetp, *writesetp, NULL, NULL) < 0) {
Any ideas how to fix that?
Mark
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list