def handler(signum, frame): # This following call uses `waitid` with WNOHANG from C side. Therefore, # Python can still get and update the process status successfully. _error_if_any_worker_fails() if previous_handler is not None: assert callable(previous_handler) previous_handler(signum, frame)
def handler(signum, frame): # This following call uses `waitid` with WNOHANG from C side. Therefore, # Python can still get and update the process status successfully. _error_if_any_worker_fails() if previous_handler is not None: previous_handler(signum, frame)
def handler(signum, frame): _error_if_any_worker_fails() if previous_handler is not None: previous_handler(signum, frame)