Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def handler(signum, frame):
     _error_if_any_worker_fails()
     if previous_handler is not None:
         previous_handler(signum, frame)