signal-util: imply sentinel -1 in sigprocmask_many() + sigset_add_many() args list
This commit is contained in:
committed by
Vito Caputo
parent
f58411a22f
commit
db7136ec73
+1
-1
@@ -1749,7 +1749,7 @@ 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, NULL, SIGWINCH, SIGTERM, SIGINT, -1) >= 0);
|
||||
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGWINCH, SIGTERM, SIGINT) >= 0);
|
||||
(void) sd_event_add_signal(c.event, NULL, SIGINT, NULL, NULL);
|
||||
(void) sd_event_add_signal(c.event, NULL, SIGTERM, NULL, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user