ayushcodes10
ed948388db
Kill workers inside the SIGALRM handler too, before it raises
...
The no-SIGALRM fallback killing workers before os._exit does not
cover the primary path: on POSIX, where SIGALRM is available, a
TimeoutError raised while the main thread is waiting inside the
ProcessPoolExecutor with-block propagates straight through that
block's own __exit__, which calls shutdown(wait=True) and blocks
until every worker exits. Forever, for a worker stuck in a C-level
call the alarm firing does nothing to stop, the exact shape #3341
was. The except TimeoutError handler that would call sys.exit is
never reached, so the configured timeout bounds nothing in that case.
Reproduced directly: a worker in an unconditional loop, a SIGALRM
after 2s, and the process was still running 15s later.
Kills any live multiprocessing.active_children() inside the signal
handler itself, before it raises, so by the time the exception
reaches shutdown(wait=True) there is nothing left to wait for. Moved
the handler from an inline lambda (which cannot contain a statement,
only expressions) to a named function, matching the no-SIGALRM
fallback's own style.
Fixes #3396 .
2026-09-07 17:18:12 +05:30
..
2026-08-30 15:14:33 +01:00
2026-07-15 15:09:17 +01:00
2026-08-12 20:56:28 +01:00
2026-08-15 17:16:53 +01:00
2026-07-05 11:41:18 +01:00
2026-07-11 11:52:12 +01:00
2026-07-30 17:13:48 +01:00
2026-08-13 14:17:41 +01:00
2026-08-12 20:57:39 +01:00
2026-07-26 11:52:20 +01:00
2026-09-05 01:18:59 +01:00
2026-09-05 01:18:59 +01:00
2026-08-12 20:56:28 +01:00
2026-07-27 10:46:47 +01:00
2026-08-12 14:20:21 +01:00
2026-08-25 18:06:46 +01:00
2026-08-06 17:29:18 +01:00
2026-09-05 21:22:13 +01:00
2026-07-08 12:09:40 +01:00
2026-08-21 19:21:20 +01:00
2026-08-06 17:29:18 +01:00
2026-07-14 13:19:16 +01:00
2026-08-28 01:20:10 +01:00
2026-07-01 15:09:42 +01:00
2026-07-16 23:48:07 +01:00
2026-07-15 13:13:30 +01:00
2026-09-05 21:55:34 +01:00
2026-07-18 19:07:16 +01:00
2026-07-12 23:57:16 +01:00
2026-09-05 01:18:59 +01:00
2026-08-29 19:32:51 +01:00
2026-08-28 01:19:45 +01:00
2026-07-18 19:07:16 +01:00
2026-07-01 11:52:50 +01:00
2026-08-05 22:08:29 +01:00
2026-08-18 16:02:02 +01:00
2026-07-01 10:49:43 +01:00
2026-08-20 15:42:36 +01:00
2026-08-12 20:56:28 +01:00
2026-07-18 12:04:23 +01:00
2026-07-08 01:16:58 +01:00
2026-09-02 14:58:01 +01:00
2026-08-24 14:12:53 +01:00
2026-09-05 01:18:59 +01:00
2026-08-25 15:45:06 +01:00
2026-08-21 16:50:25 +01:00
2026-08-24 13:22:09 +01:00
2026-08-18 18:07:12 +01:00
2026-08-24 14:08:25 +01:00
2026-08-24 13:17:23 +01:00
2026-08-05 01:41:12 +01:00
2026-08-17 15:35:53 +01:00
2026-09-05 21:55:33 +01:00
2026-09-02 03:05:59 +01:00
2026-08-25 15:52:10 +01:00
2026-08-29 18:38:33 +01:00
2026-09-05 01:18:59 +01:00
2026-07-17 00:09:02 +01:00
2026-07-30 17:13:48 +01:00
2026-08-20 16:09:00 +01:00
2026-08-14 14:26:12 +01:00
2026-08-18 22:27:27 +01:00
2026-07-13 10:29:26 +01:00
2026-08-21 19:21:20 +01:00
2026-08-28 01:20:57 +01:00
2026-09-05 21:55:34 +01:00
2026-07-09 13:22:36 +01:00
2026-08-27 20:20:16 +01:00
2026-07-20 16:35:14 +01:00
2026-09-05 21:55:33 +01:00
2026-07-06 16:43:21 +01:00
2026-08-25 18:09:25 +01:00
2026-07-30 17:13:48 +01:00
2026-08-16 18:35:46 +01:00
2026-07-20 15:35:40 +01:00
2026-09-02 14:49:03 +01:00
2026-08-28 01:20:27 +01:00
2026-07-27 10:46:47 +01:00
2026-08-30 15:11:40 +01:00
2026-08-30 15:11:40 +01:00
2026-08-19 14:05:58 +01:00
2026-07-18 19:07:16 +01:00
2026-09-07 17:18:12 +05:30
2026-08-05 22:08:29 +01:00
2026-08-05 22:08:29 +01:00
2026-08-16 18:28:53 +01:00
2026-08-17 19:00:46 +01:00
2026-08-17 15:40:19 +01:00
2026-08-18 22:20:19 +01:00
2026-07-20 11:29:22 +01:00
2026-09-05 21:55:33 +01:00
2026-07-25 22:53:43 +01:00
2026-08-13 14:21:22 +01:00
2026-07-27 10:46:47 +01:00
2026-08-11 15:18:33 +01:00
2026-08-11 16:54:35 +01:00
2026-08-15 16:43:11 +01:00
2026-08-13 13:30:24 +01:00
2026-08-15 20:11:13 +01:00
2026-07-28 09:37:39 +01:00
2026-06-30 23:26:13 +01:00
2026-07-01 10:30:47 +01:00
2026-08-05 01:41:12 +01:00
2026-08-18 16:02:02 +01:00
2026-09-05 01:18:59 +01:00
2026-08-29 16:14:47 +01:00
2026-08-30 15:11:24 +01:00
2026-08-13 14:17:42 +01:00
2026-07-06 16:43:21 +01:00
2026-07-06 16:38:42 +01:00
2026-08-16 18:34:11 +01:00
2026-08-30 15:11:40 +01:00
2026-08-29 18:36:56 +01:00
2026-08-29 16:14:47 +01:00
2026-08-06 17:29:18 +01:00
2026-08-09 23:19:08 +01:00
2026-08-10 18:07:20 +01:00
2026-08-14 14:49:56 +01:00
2026-07-30 17:13:48 +01:00
2026-08-12 14:20:21 +01:00
2026-08-21 16:49:55 +01:00
2026-08-11 15:18:12 +01:00
2026-08-01 12:21:04 +01:00
2026-08-20 16:10:36 +01:00
2026-09-02 04:00:08 +01:00
2026-08-20 15:45:18 +01:00
2026-08-20 15:44:56 +01:00
2026-07-02 22:29:30 +01:00
2026-07-04 22:12:47 +01:00
2026-08-11 16:54:35 +01:00
2026-09-05 01:19:09 +01:00
2026-07-17 10:54:07 +01:00
2026-08-25 18:09:58 +01:00
2026-08-29 19:32:44 +01:00
2026-08-20 16:13:45 +01:00
2026-07-29 17:25:08 +01:00
2026-08-13 14:20:36 +01:00
2026-08-01 11:36:30 +01:00
2026-08-10 18:06:50 +01:00
2026-08-29 16:14:29 +01:00
2026-08-10 18:06:50 +01:00
2026-08-10 18:06:50 +01:00
2026-07-03 18:34:41 +01:00
2026-08-19 14:05:58 +01:00
2026-08-21 19:22:21 +01:00
2026-08-14 21:09:32 +01:00
2026-07-04 22:12:47 +01:00
2026-07-06 12:44:47 +01:00
2026-08-21 16:57:29 +01:00
2026-09-05 21:13:54 +01:00
2026-08-08 23:37:49 +01:00
2026-08-19 14:05:58 +01:00
2026-07-09 00:32:21 +01:00
2026-07-09 00:32:21 +01:00
2026-07-09 01:06:02 +01:00
2026-08-05 22:08:29 +01:00
2026-08-11 14:40:01 +01:00
2026-08-21 16:57:29 +01:00
2026-08-21 16:50:44 +01:00
2026-08-25 15:44:52 +01:00
2026-07-04 21:22:39 +01:00
2026-07-04 03:12:23 +01:00
2026-08-29 16:15:58 +01:00
2026-08-12 14:20:21 +01:00
2026-09-05 21:55:35 +01:00
2026-08-17 15:33:34 +01:00
2026-07-25 22:53:43 +01:00
2026-08-13 13:30:24 +01:00
2026-09-05 21:55:32 +01:00
2026-07-21 21:45:53 +01:00
2026-08-01 11:36:30 +01:00
2026-08-18 22:36:42 +01:00
2026-07-12 10:36:00 +01:00
2026-09-05 21:13:53 +01:00
2026-07-06 16:38:42 +01:00
2026-08-17 15:25:39 +01:00
2026-07-06 12:36:12 +01:00
2026-08-30 15:11:24 +01:00
2026-08-13 13:30:24 +01:00
2026-08-25 18:12:02 +01:00
2026-07-28 09:37:39 +01:00
2026-07-18 19:07:16 +01:00
2026-07-10 20:24:25 +01:00
2026-07-18 19:09:53 +01:00
2026-07-16 23:36:49 +01:00
2026-07-04 03:12:23 +01:00
2026-07-15 15:14:34 +01:00
2026-08-29 18:38:05 +01:00
2026-09-05 01:18:59 +01:00
2026-07-25 22:53:43 +01:00
2026-06-30 23:15:52 +01:00
2026-08-25 18:07:40 +01:00
2026-07-21 14:22:50 +01:00
2026-07-27 10:46:47 +01:00
2026-08-28 01:18:04 +01:00
2026-08-11 14:40:01 +01:00
2026-07-25 15:44:50 +01:00
2026-07-27 10:22:48 +01:00
2026-08-09 23:19:08 +01:00
2026-08-18 16:02:02 +01:00
2026-08-07 22:49:25 +01:00
2026-07-02 22:38:29 +01:00
2026-07-02 22:38:28 +01:00
2026-07-04 03:12:23 +01:00
2026-09-05 21:55:36 +01:00
2026-08-30 15:48:40 +01:00
2026-07-02 22:38:29 +01:00
2026-08-27 20:57:16 +01:00
2026-08-11 15:18:12 +01:00
2026-08-08 23:37:32 +01:00
2026-08-29 16:16:09 +01:00
2026-08-25 15:45:33 +01:00
2026-07-14 23:32:02 +01:00
2026-07-27 10:46:47 +01:00
2026-08-30 15:12:10 +01:00
2026-07-26 11:52:20 +01:00
2026-08-01 11:36:30 +01:00
2026-09-05 21:55:35 +01:00
2026-08-14 14:21:34 +01:00
2026-08-30 15:11:23 +01:00
2026-08-14 14:20:04 +01:00
2026-08-11 14:40:01 +01:00
2026-07-05 10:33:07 +01:00