Re: A real fork() on NT

2002-02-03 Thread Christopher Faylor
On Sun, Feb 03, 2002 at 02:31:40PM -, Chris January wrote: I doubt that either Corinna or I want to transcribe the book for this mailing list. And, I'm pretty sure that neither of us has that much experience with the routines in the book. I did play with the implementation and realized that

Re: A real fork() on NT

2002-02-02 Thread Greg Mosier
From: Christopher Faylor [EMAIL PROTECTED] Subject: Re: A real fork() on NT Cygwin fork works just fine. It's slow but it should work as well as UNIX fork for a ported application. The only exception that I can think of is if you use dlopen to load a non-cygwin DLL. In that case

Re: A real fork() on NT

2002-02-01 Thread Chris January
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

Re: A real fork() on NT

2002-02-01 Thread Greg Mosier
From: Chris January [EMAIL PROTECTED] 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

Re: A real fork() on NT

2002-02-01 Thread Christopher Faylor
On Fri, Feb 01, 2002 at 09:27:21PM -0800, Greg Mosier wrote: 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

RE: A real fork() on NT

2002-01-31 Thread Ralf Habacker
On Wed, Jan 30, 2002 at 07:50:45PM -0800, Barubary wrote: Do you have any idea how to compile a program for the win32 POSIX system? If we could reverse engineer a win32 POSIX program that uses fork(), we could see the raw NT commands to do it. Corinna already provided a reference which

Re: A real fork() on NT

2002-01-31 Thread Christopher Faylor
On Thu, Jan 31, 2002 at 08:25:47PM +0100, Ralf Habacker wrote: On Wed, Jan 30, 2002 at 07:50:45PM -0800, Barubary wrote: Do you have any idea how to compile a program for the win32 POSIX system? If we could reverse engineer a win32 POSIX program that uses fork(), we could see the raw NT commands

A real fork() on NT

2002-01-30 Thread Barubary
When looking at XP's CreateProcessW (or rather, CreateProcessInternalW) I noticed something strange about the way it creates a process. It seems that NT is sort of capable of a fork() command. The function NtCreateProcess appears to create a blank process, into which you can put anything you

Re: A real fork() on NT

2002-01-30 Thread Christopher January
When looking at XP's CreateProcessW (or rather, CreateProcessInternalW) I noticed something strange about the way it creates a process. It seems that NT is sort of capable of a fork() command. The function NtCreateProcess appears to create a blank process, into which you can put anything

Re: A real fork() on NT

2002-01-30 Thread Corinna Vinschen
On Wed, Jan 30, 2002 at 11:03:00AM +, Christopher January wrote: When looking at XP's CreateProcessW (or rather, CreateProcessInternalW) I noticed something strange about the way it creates a process. It seems that NT is sort of capable of a fork() command. The function

Re: A real fork() on NT

2002-01-30 Thread Christopher Faylor
On Wed, Jan 30, 2002 at 01:14:16PM +0100, Corinna Vinschen wrote: On Wed, Jan 30, 2002 at 11:03:00AM +, Christopher January wrote: When looking at XP's CreateProcessW (or rather, CreateProcessInternalW) I noticed something strange about the way it creates a process. It seems that NT is sort

Re: A real fork() on NT

2002-01-30 Thread Barubary
] Sent: Wednesday, January 30, 2002 3:03 AM Subject: Re: A real fork() on NT Coincidentally, I was looking into a similar thing myself. Windows NT has a POSIX subsystem that's capable of doing fork()'s so it is obviously possible. Have you any ideas of the arguments passed to the function or what

Re: A real fork() on NT

2002-01-30 Thread Christopher Faylor
On Wed, Jan 30, 2002 at 07:50:45PM -0800, Barubary wrote: Do you have any idea how to compile a program for the win32 POSIX system? If we could reverse engineer a win32 POSIX program that uses fork(), we could see the raw NT commands to do it. Corinna already provided a reference which provided