mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
fix journald startup problem when code is compiled with -DNDEBUG (#4735)
Similar to this patch from here: http://systemd-devel.freedesktop.narkive.com/AvfCbi6c/patch-0-3-using-assert-se-on-actions-with-side-effects-on-test-cases If the code is compiled with -DNDEBUG which is the default for some embedded buildsystems, systemd-journald does not startup and silently fails.
This commit is contained in:
parent
2f08ccc32e
commit
9bab3b65b0
|
@ -1480,7 +1480,7 @@ static int setup_signals(Server *s) {
|
|||
|
||||
assert(s);
|
||||
|
||||
assert(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, SIGTERM, SIGUSR1, SIGUSR2, SIGRTMIN+1, -1) >= 0);
|
||||
assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, SIGTERM, SIGUSR1, SIGUSR2, SIGRTMIN+1, -1) >= 0);
|
||||
|
||||
r = sd_event_add_signal(s->event, &s->sigusr1_event_source, SIGUSR1, dispatch_sigusr1, s);
|
||||
if (r < 0)
|
||||
|
|
Loading…
Reference in a new issue