summaryrefslogtreecommitdiff
path: root/initd
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2019-04-26 17:32:45 +0200
committerDaniel Golle <daniel@makrotopia.org>2019-04-26 17:50:32 +0200
commitcfaed5630cdef2c1bf58bf57859ce36c62ad0905 (patch)
tree509ee3f1d5658bb00d27bdaeae5f40c9b079d2f7 /initd
parenta30a8fdced45b79bae12662caf68ffb8597858b3 (diff)
downloadprocd-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.c1
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();