diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-19 18:33:06 +0400 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2013-03-19 18:33:06 +0400 |
commit | 72075f0e009e103e7cfa15edf42dc40d3c373128 (patch) | |
tree | 314a7f13c39541c4799bb141470239cef88f7dc5 /src/pcu_main.cpp | |
parent | 81a12be317bb5d2ad13bc27be1b2b1cb1605f4de (diff) |
Make the code handle SIGTERM.
This way the pcu can be easily stopped with a sysvinit script.
Diffstat (limited to 'src/pcu_main.cpp')
-rw-r--r-- | src/pcu_main.cpp | 1 |
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. */ |