Function ProcessManager.registerSigChldHandler

Register custom SIGCHLD handler

void registerSigChldHandler (
  void delegate(int, int) handler
) nothrow @nogc @safe;

With this function you can register a custom SIGCHLD handler. This handler will be called only for child processes that were not started by the ProcessManager, or for child processes that did not exit.

The handler delegate will be called under a critical section lock and must not sleep.