summaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-09-13 10:36:59 +0200
committerLennart Poettering <lennart@poettering.net>2024-09-13 17:12:28 +0200
commitd7a6bb9891ecc38a1bedef9689d00671bb0001ff (patch)
tree6bf43325f9e365f0fd6d9afdb4c6fe2efb08b934 /src/run
parentMerge pull request #34402 from keszybz/notes-readme (diff)
downloadsystemd-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.c2
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)