summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2018-11-08 19:54:35 +0100
committerSven Eden <sven.eden@prydeworx.com>2018-11-09 08:28:09 +0100
commitf6660fc3afb7005079147e797dfa6badc05ae102 (patch)
tree8386a166acf144995c273f3d3c1575c9157674a0
parent2f1ded884ae586639ddb28bc845f78936951307f (diff)
Prep v239.2: Fix signal registration failure (#90)
The behaviour of sd_event_add_signal() has changed, it is no longer neccessary to mask the signal beforehand. Actually the masking causes it to be ignored, and thus the registration of the signal handler to fail. Bug: #90 Closes: #90 Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
-rw-r--r--src/login/elogind.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/login/elogind.c b/src/login/elogind.c
index 9fe52a9..d5cf633 100644
--- a/src/login/elogind.c
+++ b/src/login/elogind.c
@@ -461,17 +461,14 @@ int elogind_manager_startup(Manager *m) {
assert(m);
- assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, -1) >= 0);
r = sd_event_add_signal(m->event, NULL, SIGINT, elogind_signal_handler, m);
if (r < 0)
return log_error_errno(r, "Failed to register SIGINT handler: %m");
- assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGQUIT, -1) >= 0);
r = sd_event_add_signal(m->event, NULL, SIGQUIT, elogind_signal_handler, m);
if (r < 0)
return log_error_errno(r, "Failed to register SIGQUIT handler: %m");
- assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGTERM, -1) >= 0);
r = sd_event_add_signal(m->event, NULL, SIGTERM, elogind_signal_handler, m);
if (r < 0)
return log_error_errno(r, "Failed to register SIGTERM handler: %m");