Mail Archives: cygwin/2002/08/07/14:23:26
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 AT 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/
- Raw text -