diff options
author | Paul Spooren <mail@aparcar.org> | 2019-04-26 17:32:45 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-04-26 17:50:32 +0200 |
commit | cfaed5630cdef2c1bf58bf57859ce36c62ad0905 (patch) | |
tree | 509ee3f1d5658bb00d27bdaeae5f40c9b079d2f7 /initd | |
parent | a30a8fdced45b79bae12662caf68ffb8597858b3 (diff) | |
download | procd-cfaed5630cdef2c1bf58bf57859ce36c62ad0905.tar.gz |
procd: add SIGPWR as signal
to use procd in LXC containers they have to support SIGPWR to shutdown.
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'initd')
-rw-r--r-- | initd/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/initd/init.c b/initd/init.c index 0349e6e..29eee50 100644 --- a/initd/init.c +++ b/initd/init.c @@ -77,6 +77,7 @@ main(int argc, char **argv) sigaction(SIGTERM, &sa_shutdown, NULL); sigaction(SIGUSR1, &sa_shutdown, NULL); sigaction(SIGUSR2, &sa_shutdown, NULL); + sigaction(SIGPWR, &sa_shutdown, NULL); early(); cmdline(); |