delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/09/16:21:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 9 Sep 2005 16:21:26 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Michael Brian Bentley <bentley AT crenelle DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Logout Terminal Services RDC ends ssh invoked by W2k3 service
In-Reply-To: <p06110408bf479dcf8d89@[192.168.1.103]>
Message-ID: <Pine.GSO.4.63.0509091620380.16034@slinky.cs.nyu.edu>
References: <p06110402bf458caf1166@[192.168.1.103]> <20050908075435 DOT GA5555 AT calimero DOT vinschen DOT de> <p06110404bf463973bbc6@[192.168.1.103]> <20050909094647 DOT GT5555 AT calimero DOT vinschen DOT de> <p06110408bf479dcf8d89@[192.168.1.103]>
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019