summaryrefslogtreecommitdiff
path: root/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-27 06:19:28 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-27 06:19:28 +0100
commit2a987ee8c94ac29545e3c94d47b5d493daea0b5e (patch)
tree3df2034ff10ca14b4229bb0094b7e45e89d334c7 /manager.c
parent47a71eed0f41c8661361d5506e47d1b223613680 (diff)
reset signal handlers on startup
Diffstat (limited to 'manager.c')
-rw-r--r--manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/manager.c b/manager.c
index b3123f2b1d..f15cf79869 100644
--- a/manager.c
+++ b/manager.c
@@ -15,6 +15,7 @@
#include "macro.h"
#include "strv.h"
#include "log.h"
+#include "util.h"
Manager* manager_new(void) {
Manager *m;
@@ -41,6 +42,8 @@ Manager* manager_new(void) {
if ((m->epoll_fd = epoll_create1(EPOLL_CLOEXEC)) < 0)
goto fail;
+ assert_se(reset_all_signal_handlers() == 0);
+
assert_se(sigemptyset(&mask) == 0);
assert_se(sigaddset(&mask, SIGCHLD) == 0);
assert_se(sigaddset(&mask, SIGINT) == 0);