delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/07/09:40:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 7 Sep 2001 15:39:49 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Feature request: inetd as a service on win98
Message-ID: <20010907153949.D17245@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <F15DCDDFC247D011A0B20000F84A170F05B23181 AT mante10 DOT nam DOT dow DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <F15DCDDFC247D011A0B20000F84A170F05B23181@mante10.nam.dow.com>; from habermann@dow.com on Fri, Sep 07, 2001 at 08:10:45AM -0400

On Fri, Sep 07, 2001 at 08:10:45AM -0400, Habermann, David (DA) wrote:
> >On Fri, Sep 07, 2001 at 10:10:45AM +0200, Gerald Villemure wrote:
> >> In other words run inetd as a true service in win98 such that I can login
> >> and logout without affecting the inetd process.  Somewhat like the VNC
> >> server dose.
> >> 
> >> One option perhaps would be to introduce a new command in cygwin to hide
> a
> >> window based on PID with the option to also detach it from the session so
> >> the person can log out without a dialog popping up saying you need to
> close
> >> all your apps first.
> >
> >Just a question:  Why don't you contribute such a solution to
> >our community driven open source project called Cygwin?
> 
> In case it helps, I found that addition of the following code bit
> (originally 
> found as part of the VNC project) to SSHD allows it to detach from the DOS 
> window in which it was running, allowing the DOS window to be closed 
> on Win98.  

FWIW, I think that shouldn't be necessary anymore beginning with
the next Cygwin version.  We got a patch which should do the
FreeConsole() automagically when a process has daemonised itself
using the setsid() call.  Thanks anyway.

> Sorry that I'm not providing this in the standard patch form, but
> 
> no one has ever taught me how to create one.

diff -up oldsource newsource

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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