[std.process] get Pid class by Process ID?
Jonathan Villa
jonataker at gmail.com
Wed Jul 11 17:01:55 UTC 2018
Hi everyone,
Is it possible to get a Pid (class) from a process id (int)?.
I need to use the wait function from std.process but it asks for
a Pid, and I have only the process id (integer).
auto pd = new Pid(processID); // doesn't work
I want to verify that the parent process is still alive, if it
doesn't, this child process shall be terminated.
Currently, I'm passing the parent process ID by arguments and I
need a cross-OS way (if possible).
Thanks in advance.
More information about the Digitalmars-d-learn
mailing list