Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
From: ericblake@comcast.net (Eric Blake)
To: cygwin@cygwin.com, Michael Brian Bentley <bentley@crenelle.com>
Subject: Re: Logout Terminal Services RDC ends ssh invoked by W2k3 service
Date: Fri, 09 Sep 2005 21:15:00 +0000
Message-Id: <090920052115.17034.4321FB54000CE3670000428A22070009530A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

> A quick note: if you use nohup or setsid, don't forget to redirect *all*
> of stdin, stdout, stderr -- otherwise ssh may get a broken pipe/EOF and
> quit.

In coreutils CVS (which will become 5.3.1), nohup will redirect stdin on
your behalf, in light of a recent POSIX interpretation, for this very reason.
However, I haven't had the desire to package a CVS version of coreutils,
instead preferring to wait for 5.3.1 to actually be released.  Furthermore,
since not all implementations of nohup will do that, you still need to
redirect stdin yourself to be portable when using nohup.

--
Eric Blake



--
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/

