Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <911C684A29ACD311921800508B7293BA037D325F@cnmail> From: Mark Bradshaw To: "'cygwin AT cygwin DOT com'" Subject: OpenSSH fork hangs when issued from cmd Date: Wed, 7 Aug 2002 14:14:03 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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/