www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16615] New: std.process is missing functionality for child

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

          Issue ID: 16615
           Summary: std.process is missing functionality for child
                    processes
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: andre s-e-a-p.de

std.process has no functionality to get the Pids of child processes. This is
for example an issue if you want to use function kill to kill a process tree. 

Of course you can use system specific functionality to retrieve the processIDs
of the child processes, but then again you have the issue there is no function
to convert a processID to a Pid, as kill expects a pid.

I would be if a function is included in std.process to kill a pid and which
also kills all child processes.
In addition a function would be nice, which returns the direct child pid of a
given pid.

See also forum post
https://forum.dlang.org/thread/phsyxzkxspzheuenunqz forum.dlang.org

--
Oct 15 2016