www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/02/10:31:43

From: cgf AT bbc DOT com (Christopher Faylor)
Subject: Re: Fork speedup?
2 Feb 1998 10:31:43 -0800 :
Message-ID: <EnrK05.4v2.cygnus.cygwin32.developers@bbc.com>
References: <EnqD7D DOT FBu AT bbc DOT com>
Reply-To: gnu-win32-developers AT cygnus DOT com
To: cygwin32-developers AT cygnus DOT com

In article <199802021700 DOT MAA11761 AT subrogation DOT cygnus DOT com>,
Ian Lance Taylor  <gnu-win32-developers AT cygnus DOT com> wrote:
>   From: cgf AT bbc DOT com (Christopher Faylor)
>   Date: Mon, 2 Feb 1998 02:50:01 GMT
>
>   1) Parent calls CreateProcess with lpReserved2 set to a block of information
>      containing memory regions to be copied to the child.
>
>According to the MSDN CD I have, lpReserved2 is ``Reserved; must be
>NULL.''  Is this a sanctioned use of the fields?
>
>I know that in the DOS world it's traditional to rely on undocumented
>behaviour, but I have to admit that my Unix background makes me feel
>very uneasy about it.

The lpReserved2 field is already being used in spawn_guts.

Sergey researched this a while ago and discovered that this field is used
by msvcrt*.dll to pass descriptor information.  It would break a lot
software which if MS was to use this field for something else, now, so
*I think* it should be safe to use it.

This actually seems to be one of those cases where Microsoft is making
use of undocumented features to make their software run better.

That said, however, there are certainly other ways to do what I was proposing.
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019