delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/02/00:32:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <000b01c1abaa$4e70f460$0100a8c0@gregmo>
From: "Greg Mosier" <Greg DOT Mosier AT USA DOT Net>
To: <cygwin AT cygwin DOT com>
References: <006e01c1a96a$f60429a0$aace0544 AT CX535256D> <E16VsW4-0001P8-00 AT diver DOT doc DOT ic DOT ac DOT uk> <20020130131416 DOT D11608 AT cygbert DOT vinschen DOT de> <013a01c1ab96$839eefc0$0100a8c0 AT advent02>
Subject: Re: A real fork() on NT
Date: Fri, 1 Feb 2002 21:27:21 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700

From: "Chris January" <chris AT atomice DOT net>
Subject: Re: A real fork() on NT


> > That isn't really new.  I'd like to point you to the example 6.1,
> > "Forking a Win32 Process" on p. 161ff of Gary Nebbett's excellent
> > book "Windows NT/2000 Native API Reference", published by MTP,
> > ISBN 1-57870-199-6, which also describes the problem with kernel32.dll
> > initialization of the child process.
>
> Are you referring to the CsrpConnectToServer function? I have a working
> implementation which replaces this with CsrClientConnectToServer which is
> exported from the DLL. Are their any other pitfalls I should be aware of?

Pardon the intrusion here, but this sounds like it could be connected with a
problem that I'm working on.  I've got an issue with an application that I'm
trying to get to fork into bg.  Of course, this application, eggdrop, isn't
written to fork with cygwin and therefore I'm trying to patch it so that it
will.  The interesting thing about this is that I can start eggdrop with an
& but it still doesn't return the controlling terminal.  What difference it
does make, though, is that starting it with & allows me to Crtl-Break it
once it's running and it returns the controlling terminal while the program
continues in bg.  I would guess that this is an issue related with forking
issues under cygwin as I searched the archives and it seems to be an ongoing
issue.  From what I can tell, though, it seems like quite a few people have
gotten this to work?  I ask you people of the list, should I even bother
beating my head against the wall here or just forget about it?

Cheers,
Greg

P.S.  I would have dropped this awhile back with the exception of the cron
application.  It appears to fork quite nicely under Win98, my OS.  Now maybe
I'm wrong here, but seems to me if one app can fork that surely another
should be able to, no?




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