Missing functionality in std.process?

rikki cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 14 20:45:57 PDT 2016


On 15/10/2016 5:33 AM, Andre Pany wrote:
> Hi,
>
> I developed an application which starts and stops other applications
> like NodeJS HTTP server applications or Java Tomee Servlets. A typical
> NodeJS application has a process tree of 4-5 levels.
> I had to switch really fast from std.process functionality like kill and
> wait to OS specific functionality because the child processes were not
> killed entirely leading to effects like blocked ports/files/directories.
> I have to use windows command taskkill.exe with parameter "Child tree
> kill".
>
> What I miss is s.th. to get the child Pids of a parent Pid. Again I can
> use OS dependent functionality to retrieve the processIDs of the
> children, but how to convert these processIDs to Pids for usage with
> kill/wait functions?
>
> Do I miss s.th. fundamental with std.process?
>
> Kind regards
> André
>

Yeah we don't support that right now in std.process.


More information about the Digitalmars-d-learn mailing list