| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Michael Hoffman <b3i4old02 AT sneakemail DOT 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 AT mail DOT gmail DOT com> |
| Mime-Version: | 1.0 |
| 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 |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |