aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-03-19 18:33:06 +0400
committerIvan Kluchnikov <kluchnikovi@gmail.com>2013-03-19 18:33:06 +0400
commit72075f0e009e103e7cfa15edf42dc40d3c373128 (patch)
tree314a7f13c39541c4799bb141470239cef88f7dc5
parent81a12be317bb5d2ad13bc27be1b2b1cb1605f4de (diff)
Make the code handle SIGTERM.
This way the pcu can be easily stopped with a sysvinit script.
-rw-r--r--src/pcu_main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index 8265c319..5bb646e7 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -114,6 +114,7 @@ void sighandler(int sigset)
switch (sigset) {
case SIGINT:
+ case SIGTERM:
/* If another signal is received afterwards, the program
* is terminated without finishing shutdown process.
*/