Files
systemd/src/basic
Lennart Poettering 789f4f7ee0 tty-askpw-agent: react to SIGTERM while waiting for console
I noticed that systemd-tty-password-agent would time out when asked to
stop via SIGTERM, and eventually be killed, under some circumstances.
It took me a while but i figured out what was going on:

systemd-ask-pw-agent blocks SIGTERM because it wants async notifications
on SIGTERM via signalfd() to listen on. That mostly works great: except
for one case: if we actually get a pw query request, and hence need to
acquire the terminal: we issue open_terminal() in that case, but if the
terminal is used otherwsie we'll hang, and because SIGTERM is blocked
we'll hang and cannot exit cleanly.

Address that: optionally, in acquire_terminal() look for SIGTERM by
unblcking the signal mask via ppoll() while we wait.
2025-03-03 10:47:09 +01:00
..
2024-10-02 22:15:41 +01:00
2023-06-14 16:44:57 +02:00
2025-03-01 00:33:32 +09:00
…
2025-03-01 00:33:32 +09:00
2025-02-26 18:12:04 +01:00
2024-06-28 18:55:31 +02:00
…
…
2024-10-31 23:08:11 +01:00
2024-10-31 23:08:11 +01:00
2024-10-22 17:51:26 +02:00
2024-10-22 17:51:26 +02:00
2023-10-04 08:58:10 +09:00
2025-01-18 23:24:29 +01:00
2023-02-24 14:11:31 +01:00
2025-02-10 00:43:53 +09:00
2025-01-17 19:46:37 +00:00
2024-03-22 01:44:45 +08:00
2024-03-22 01:44:45 +08:00
…
2025-02-28 14:18:07 +01:00
2022-12-23 23:26:26 +01:00
2025-02-10 00:43:53 +09:00
2025-03-01 00:33:32 +09:00
…
…
2025-03-01 00:33:32 +09:00
2025-03-01 00:33:32 +09:00
2024-12-10 11:15:48 +09:00
2024-12-10 11:15:48 +09:00
2024-12-10 11:15:48 +09:00
2024-12-10 11:15:48 +09:00
2023-11-01 14:07:54 +00:00
2024-12-10 11:15:48 +09:00
2024-12-10 11:15:48 +09:00
2024-12-13 15:36:45 +00:00
2025-01-20 23:19:00 -05:00
2025-01-20 23:19:00 -05:00
2025-02-21 16:12:59 +01:00