After starting a new process on Unix,
a "reaper thread" is started to wait for process termination via waitpid.
It would save one Thread creation per subprocess invocation if we simply had
a SIGCHLD handler that would set the hasExited field in the appropriate Process
object.
a "reaper thread" is started to wait for process termination via waitpid.
It would save one Thread creation per subprocess invocation if we simply had
a SIGCHLD handler that would set the hasExited field in the appropriate Process
object.