summaryrefslogtreecommitdiff
path: root/src/userdb/userdbd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-03-15 14:59:32 +0100
committerLennart Poettering <lennart@poettering.net>2023-03-15 15:57:03 +0100
commit54f5522664bfcf119e2ad58229a6be171249807d (patch)
treef5e173d982eda31211b409fbfdd7bd971b99d62c /src/userdb/userdbd.c
parentf5abe8f95721213edd76c16ed829cc3e37d7bdc6 (diff)
downloadsystemd-54f5522664bfcf119e2ad58229a6be171249807d.tar.gz
userdbd: modernize signal handling
Let's make use of SD_EVENT_SIGNAL_PROCMASK so that we don't have to mask the signals manually. Let's use sd_event_set_exit_signal() instead of rolling our own SIGTERM/SIGINT handling. Let's use "floating" event sources instead of keeping references on our own. Let's also debug log if we can't enable watchdog handling.
Diffstat (limited to 'src/userdb/userdbd.c')
-rw-r--r--src/userdb/userdbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdb/userdbd.c b/src/userdb/userdbd.c
index 2bf37a52c4..89ac9c7ba9 100644
--- a/src/userdb/userdbd.c
+++ b/src/userdb/userdbd.c
@@ -37,7 +37,7 @@ static int run(int argc, char *argv[]) {
if (setenv("SYSTEMD_BYPASS_USERDB", "io.systemd.NameServiceSwitch:io.systemd.Multiplexer:io.systemd.DropIn", 1) < 0)
return log_error_errno(errno, "Failed to set $SYSTEMD_BYPASS_USERDB: %m");
- assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, SIGTERM, SIGINT, SIGUSR2, SIGRTMIN+18, -1) >= 0);
+ assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, -1) >= 0);
r = manager_new(&m);
if (r < 0)