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

Vladimir Panteleev <thecybersha...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybersha...@gmail.com
         Resolution|FIXED                       |WONTFIX

--- Comment #4 from Vladimir Panteleev <thecybersha...@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.

--

Reply via email to