def registerReapProcessHandler(pid, process):
    if pid in reapProcessHandlers:
        raise RuntimeError("Try to register an already registered process.")
    try:
        auxPID, status = os.waitpid(pid, os.WNOHANG)
    except:
        log.msg('Failed to reap %d:' % pid)
        log.err()
        auxPID = None
    if auxPID:
        process.processEnded(status)
    else:
        # if auxPID is 0, there are children but none have exited
        reapProcessHandlers[pid] = process
Called prior to building the site, after loading configuration and plugins.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/process.py/registerReapProcessHandler--crossover with--dataset/ETHPy150Open koenbok/Cactus/cactus/plugin/defaults.py/preBuild