[Issue 14770] std.process should use lightweight forks where available
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 6 22:52:14 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14770
David Soria Parra <dsp at experimentalworks.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsp at experimentalworks.net
--- Comment #2 from David Soria Parra <dsp at experimentalworks.net> ---
https://github.com/D-Programming-Language/phobos/pull/3476
I opted for using vfork. It seems we are in all cases doing the right thing,
not tempering with the process space and correctly calling execv* or _exit.
It seems that the "correct" method would be using posix_spawn, however we need
support for this in druntime, so at the moment, I think going with vfork is
less invasive while providing the proposed enhancements.
--
More information about the Digitalmars-d-bugs
mailing list