Danny Backx wrote:
> On Wed, 2007-06-20 at 21:47 +0100, Pedro Alves wrote:
>> Danny Backx wrote:
>>> Even though the comments about the argv argument are accurate, this may
>>> not be the right reference to quote from. 
>>>
>>> I've been looking for reference material on MSDN. Here's one :
>>> http://msdn2.microsoft.com/en-us/library/431x4c1w(VS.80).aspx
>>>
>> Look closer.  Those functions don't exist on
>> coredll.dll.
> 
> I guess you're right.
> 
> I suspect I did identify the cause of the problems though. And the spawn
> documentation on MSDN does predict what the modified example does. So
> there's merit in looking there too.
> 

( Look closer (*), I agreed with you at the end of my previous reply. )

Sure, but if MSDN described spawn/exec the other way around, opengroup
would win.

For reference:

 From http://www.opengroup.org/onlinepubs/000095399/functions/exec.html:

"The exec family of functions shall replace the current process image with a 
new 
process image. The new image shall be constructed from a regular, executable 
file called the new process image file. There shall be no return from a 
successful exec, because the calling process image is overlaid by the new 
process image."

And on spawn:
http://www.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html

"The posix_spawn() and posix_spawnp() functions shall create a new process 
(child process) from the specified process image. The new process image shall 
be 
constructed from a regular executable file called the new process image file."

So to resume what Danny was saying, exec replaces, spawn doesn't.

Cheers,
Pedro Alves

(*) Just kidding. :)


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to