Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 9 Sep 2005 16:21:26 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Michael Brian Bentley cc: cygwin AT cygwin DOT com Subject: Re: Logout Terminal Services RDC ends ssh invoked by W2k3 service In-Reply-To: Message-ID: References: <20050908075435 DOT GA5555 AT calimero DOT vinschen DOT de> <20050909094647 DOT GT5555 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 9 Sep 2005, Michael Brian Bentley wrote: > > You could do me a favour and try the latest Cygwin snapshot 2005-Sep-08 > > from http://www.cygwin.com/snapshots/ It contains a patch which let > > Cygwin application ignore the LOGOFF event entirely and let the default > > mechanism deal with it. I'd be interested if it changes the observed > > behaviour. That's plan B from my point of view. > > > > Plan C would be to use setsid or nohup plus io-redirection when starting > > Cygwin apps from the service. The important fact here is that the > > Cygwin process must be disconnected from its controlling tty (the console > > which the service is running in). > > We're on it, I'll try to get back to you sometime today with the results. > Thanks! 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. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/