[Issue 16615] std.process is missing functionality for child processes

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 9 11:16:18 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=16615

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com
         Resolution|FIXED                       |WONTFIX

--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Resolving as WONTFIX as per
https://github.com/dlang/phobos/pull/5086#issuecomment-307461557 and
https://github.com/dlang/phobos/pull/5086#issuecomment-307426691 (quoting):

Although it might not be obvious, killing a process is inherently a very
platform specific operation. There is and cannot be an obviously correct way to
do it on both platforms (Windows and POSIX), because the two platforms manage
processes in different way. Windows does not have signals; POSIX does not allow
specifying exit codes; and reparenting is done differently on both. 

Furthermore, the example use case presented in the issue (killing a process
tree) is not possible to correctly implement with just kill - you must suspend
the entire process group, and only then kill them, and I'm not sure that even
that is sufficient. I would advise against attempting to do it in general, and
instead run the process group in a container and kill it wholesale.

--


More information about the Digitalmars-d-bugs mailing list