delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/03/18:51:05

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: <027701c1ad0d$e1f9d030$0100a8c0@advent02>
From: "Chris January" <chris AT atomice 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> <20020202032243 DOT GD6842 AT redhat DOT com> <00cb01c1acbf$802b31d0$0100a8c0 AT advent02> <20020203185519 DOT GA30264 AT redhat DOT com>
Subject: Re: A real fork() on NT
Date: Sun, 3 Feb 2002 23:52:46 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> What proof of concept?  The book has a "proof of concept".  It's the
> niggling details that are the problem.
>
> You'd need a real implementation to prove that it is workable.
>
> Why do I get the feeling that no one is interested in actually looking
> at the working code from the referenced book?
I've got the book; I have a DLL that exports a function called fork and I'm
seeing what can be done to get it to work with kdeinit. A lot of programs
do:
if (fork() == 0)
    exec(...)
and this could be replaced by spawn(...) anyway, but kdeinit does a bit more
work.
The major problem I've encountered so far is that handles which aren't
really NT objects aren't inherited by the child process. Also the child
process can't call any GUI services and so on.
The Cygwin DLL needs some modifications to support this, which I'm working
on at the moment. For example, any attempts to use the parent processes'
file handles in the child return an error of EBADF even though the Windows
file handles have been inherited properly.

Regards
Chris



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