diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2020-05-13 17:13:32 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-05-13 17:14:45 +0200 |
commit | 3db3b82a3081f6db3cbee8926db19c1c072cc7d5 (patch) | |
tree | 725c14982b8d0ef2451c249c0ee8b55da27fba2e /initd/runsvc.c | |
parent | 9084f3862973aa5eccfafe51c6682a6aef123d4d (diff) |
Cleanup: Remove SIGCHLD handler from initd
Instead use wait() in the main loop. This way, the supervisor
functions (except set target) are no longer called from signal
context and can be simplified a little.
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'initd/runsvc.c')
-rw-r--r-- | initd/runsvc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/initd/runsvc.c b/initd/runsvc.c index 95c26cb..df5a656 100644 --- a/initd/runsvc.c +++ b/initd/runsvc.c @@ -204,7 +204,6 @@ pid_t runsvc(service_t *svc) sigaction(SIGHUP, &act, NULL); act.sa_handler = SIG_DFL; - sigaction(SIGCHLD, &act, NULL); sigaction(SIGUSR1, &act, NULL); if (setup_env()) |