Vote for std.process

Johannes Pfau nospam at example.com
Fri Apr 12 01:48:40 PDT 2013


Am Fri, 12 Apr 2013 17:04:08 +1000
schrieb Manu <turkeyman at gmail.com>:


> 
> toStringz is used liberally; alternatively, alloca() could allocate
> the c-string's on the stack and zero terminate them there, passing a
> pointer to the stack string to the OS functions.
> 

Are you sure this is possible in this specific case?
The execve manpage says:

execve() does not return on success, and the text, data, bss, and
_stack_ of the calling process are overwritten by that of the program
loaded.

There is no documentation if the environment variables are copied
internally in execve.


More information about the Digitalmars-d mailing list