I'm looking for the best way to wait on a PID that was not launched by my command line app. As far as I can tell, Process and ProcessHandle only offer the ability to wait on a PID that has been created by Process::launch().
Process::kill() and Process:: requestTermination() do offer static routines that operate on an existing PID. Would it be acceptable to add a variant of wait() that operates in this way? Perhaps something like
- Code: Select all
static void wait(PID pid);
I'm happy to provide a patch if this approach sounds reasonable. Thanks.