delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/07/14:23:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <bradshaw AT staff DOT crosswalk DOT com>
To: "'cygwin AT cygwin DOT com'" <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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019