Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 7 Sep 2001 15:39:49 +0200
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: Feature request:  inetd as a service on win98
Message-ID: <20010907153949.D17245@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin@cygwin.com>
References: <F15DCDDFC247D011A0B20000F84A170F05B23181@mante10.nam.dow.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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@cygwin.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/

