diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-09-13 10:36:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-09-13 17:12:28 +0200 |
commit | d7a6bb9891ecc38a1bedef9689d00671bb0001ff (patch) | |
tree | 6bf43325f9e365f0fd6d9afdb4c6fe2efb08b934 /src/run | |
parent | Merge pull request #34402 from keszybz/notes-readme (diff) | |
download | systemd-d7a6bb9891ecc38a1bedef9689d00671bb0001ff.tar.xz systemd-d7a6bb9891ecc38a1bedef9689d00671bb0001ff.zip |
tree-wide: make sigprocmask() changes more automatic
This tries to get rid of most manual sigprocmask() changes, in favour
of:
1. The SD_EVENT_SIGNAL_PROCMASK flag to sd_event_add_signal()
2. The sd_event_set_signal_exit() call for handling SIGTERM/SIGINT
3. Move masking of SIGWINCH into ptyfwd, out of nspawn/vmspawn/run
And while we are at it get rid of a bunch of event source fields whose
lifetime is bound to the sd_event object they belong to anyway, and make
use of the "floating" event source feature of sd-event instead.
Diffstat (limited to 'src/run')
-rw-r--r-- | src/run/run.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/run/run.c b/src/run/run.c index 9010b8d660..4370f897ec 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -1875,8 +1875,6 @@ static int start_transient_service(sd_bus *bus) { return log_error_errno(r, "Failed to get event loop: %m"); if (master >= 0) { - assert_se(sigprocmask_many(SIG_BLOCK, /* old_sigset=*/ NULL, SIGWINCH) >= 0); - (void) sd_event_set_signal_exit(c.event, true); if (!arg_quiet) |