X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Michael Hoffman 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: References: <15a6d6ee0704091451n34da54dciba802b5bcc04af62 AT mail DOT gmail DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/