Matthias Wirth
eea152ee68
BUG/MINOR: signals/poller: ensure wakeup from signals
...
Add self-wake in signal_handler() to fix a race condition with a signal
coming in between checking signal_queue_len and entering polling sleep.
The changes in commit 43c891dda ("BUG/MINOR: signals/poller: set the
poller timeout to 0 when there are signals") were insufficient.
Move the signal_queue_len check from the poll implementations to
run_poll_loop() to keep that logic in one place.
The poll loops are terminated either by the parameter wake being set or
wake up due to a write to their poller_wr_pipe by wake_thread() in
signal_handler().
This fixes issue #1841 .
Must be backported in every stable version.
2022-09-09 11:15:22 +02:00
..
2022-09-08 16:38:10 +02:00
2022-08-23 20:19:11 +02:00
2022-09-01 20:52:29 +02:00
2022-05-27 19:33:35 +02:00
2022-06-23 11:49:09 +02:00
2022-08-22 10:46:13 +02:00
2022-07-15 19:41:26 +02:00
2022-07-29 17:32:05 +02:00
2022-08-22 13:09:29 +02:00
2022-05-27 19:33:34 +02:00
2022-08-24 11:59:04 +02:00
2022-08-17 10:45:22 +02:00
2022-08-18 18:16:36 +02:00
2022-07-01 19:15:15 +02:00
2022-06-07 12:04:12 +02:00
2022-07-15 19:43:10 +02:00
2022-09-08 14:19:15 +02:00
2022-08-03 10:30:07 +02:00
2022-09-09 11:15:22 +02:00
2022-09-09 11:15:22 +02:00
2022-09-09 11:15:22 +02:00
2022-09-09 11:15:22 +02:00
2022-07-15 20:16:30 +02:00
2022-07-01 19:15:14 +02:00
2022-08-10 17:25:23 +02:00
2022-08-06 17:12:51 +02:00
2022-08-29 09:57:33 +02:00
2022-06-22 18:33:27 +02:00
2022-05-27 19:33:35 +02:00
2022-05-24 15:38:05 +02:00
2022-07-07 09:35:58 +02:00
2022-09-02 11:19:07 +02:00
2022-05-30 09:59:26 +02:00
2022-09-08 18:04:58 +02:00
2022-09-09 11:15:22 +02:00
2022-08-29 15:37:17 +02:00
2022-08-03 15:04:18 +02:00
2022-09-02 19:24:12 +02:00
2022-08-17 15:52:17 +02:00
2022-09-02 13:54:30 +02:00
2022-07-10 14:13:48 +02:00
2022-08-18 16:13:33 +02:00
2022-07-06 17:54:03 +02:00
2022-07-15 20:16:30 +02:00
2022-08-19 16:09:06 +02:00
2022-06-08 15:28:38 +02:00
2022-05-27 19:33:35 +02:00
2022-09-02 14:23:56 +02:00
2022-09-02 16:43:25 +02:00
2022-09-02 16:43:03 +02:00
2022-05-27 19:33:35 +02:00
2022-09-08 18:04:58 +02:00
2022-07-27 12:13:56 +02:00
2022-08-06 17:12:51 +02:00
2022-08-01 11:59:46 +02:00
2022-05-27 19:33:35 +02:00
2022-08-29 11:38:02 +02:00
2022-08-17 10:34:00 +02:00
2022-06-23 11:49:09 +02:00
2022-07-25 16:11:11 +02:00
2022-09-06 18:23:14 +02:00
2022-08-17 11:04:53 +02:00
2022-05-30 14:30:05 +02:00
2022-07-30 10:00:59 +02:00
2022-08-03 14:27:20 +02:00
2022-07-29 17:32:05 +02:00
2022-07-29 17:32:05 +02:00
2022-08-23 17:40:09 +02:00
2022-08-11 11:11:20 +02:00
2022-09-08 16:13:38 +02:00
2022-08-05 15:27:14 +02:00
2022-08-20 19:08:31 +02:00
2022-08-19 18:31:59 +02:00
2022-08-11 19:12:12 +02:00
2022-08-29 18:45:27 +02:00
2022-09-01 19:34:46 +02:00
2022-09-08 16:13:38 +02:00
2022-08-12 11:18:46 +02:00
2022-09-08 14:19:15 +02:00
2022-08-03 11:28:52 +02:00
2022-09-09 11:15:22 +02:00
2022-09-01 08:25:34 +02:00
2022-07-15 19:58:06 +02:00
2022-07-15 19:58:06 +02:00
2022-07-25 16:11:11 +02:00
2022-08-31 15:24:01 +02:00
2022-06-20 17:27:49 +02:00
2022-05-27 19:33:35 +02:00
2022-09-07 11:33:28 +02:00
2022-06-10 15:12:21 +02:00
2022-08-11 13:59:13 +02:00
2022-08-17 10:52:15 +02:00
2022-09-08 14:19:15 +02:00
2022-09-08 16:21:22 +02:00
2022-05-27 19:33:35 +02:00
2022-06-13 08:04:10 +02:00
2022-09-03 06:11:08 +02:00
2022-09-06 18:23:14 +02:00
2022-08-06 16:45:26 +02:00
2022-08-01 11:59:15 +02:00
2022-06-08 15:28:38 +02:00
2022-07-01 19:26:35 +02:00
2022-06-23 11:49:09 +02:00
2022-09-08 18:04:58 +02:00