X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Michael Hoffman <b3i4old02@sneakemail.com>
Subject:  Re: 1.5.24: rxvt or console fail to shutdown due to ssh -f still  running despite setsid()
Date:  Tue, 10 Apr 2007 14:44:29 +0100
Lines: 18
Message-ID: <evg4cd$r6f$1@sea.gmane.org>
References:  <15a6d6ee0704091451n34da54dciba802b5bcc04af62@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
In-Reply-To: <15a6d6ee0704091451n34da54dciba802b5bcc04af62@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Ken Shaffer wrote:
>> I have just checked the source for the daemon() function and the 
>> setsid executable. They
>> both call fork() and then setsid(). Do the console/rxvt process stick 
>> after calling ssh -f
>> because file descriptors are left open? Can you suggest a strategy to 
>> deal with this?
> 
> I'm not running ssh as a daemon. What I do in order to ssh to another
> computer from any other shell is to keep one shell open all the time
> running the agent. This is accomplished via the startssh function.

Thanks, but that doesn't help since I (a) need to run ssh as a daemon 
for forwarding ports, and as I said in my earlier post (b) I need to 
enter a password interactively. The host in question does not accept 
public key authentication.
-- 
Michael Hoffman


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

