(signum, frame)
| 175 | previous_handler = None |
| 176 | |
| 177 | def handler(signum, frame): |
| 178 | # This following call uses `waitid` with WNOHANG from C side. Therefore, |
| 179 | # Python can still get and update the process status successfully. |
| 180 | _error_if_any_worker_fails() |
| 181 | if previous_handler is not None: |
| 182 | previous_handler(signum, frame) |
| 183 | |
| 184 | signal.signal(signal.SIGCHLD, handler) |
| 185 | _SIGCHLD_handler_set = True |
nothing calls this directly
no outgoing calls
no test coverage detected