diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2020-05-13 16:55:30 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-05-13 16:58:15 +0200 |
commit | dd0007f9dcb850806cb62ecc705c35789e12f175 (patch) | |
tree | f74be0fb7e5a0d63e1e3f2c88eeb4906bf6d5759 /cmd/service/enable.c | |
parent | 319b20e6c303a5c66513708372af24bcdcd1e905 (diff) |
Fix runsvc waiting behaviour if run as subreaper
It basically needs to wait for ALL children (even those created by
child processes) to terminate before terminating itself.
This commit replaces the waitpid loop with a regular wait that and
adds another wait loop at the end of run_sequentially to wait for
any transitive children. The sigchld handling is removed from the
signal handler and the handler is only installed for SIGINT,
SIGTERM and SIGHUP. The other signals that initd hooks are set to
default.
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'cmd/service/enable.c')
0 files changed, 0 insertions, 0 deletions