Patch was committed to master.
2013/3/17 Holger Hans Peter Freyther <hfreyther(a)sysmocom.de>de>:
From: Holger Hans Peter Freyther
<zecke(a)selfish.org>
Make the code handle SIGTERM. This way the pcu can be easily stopped
with a sysvinit script.
---
src/pcu_main.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index f135cfd..4fae14b 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.
*/
--
1.7.10.4
--
Regards,
Ivan Kluchnikov.
http://fairwaves.ru