Make the code handle SIGTERM.

This way the pcu can be easily stopped with a sysvinit script.
link_adaptation
Holger Hans Peter Freyther 10 years ago committed by Ivan Kluchnikov
parent 81a12be317
commit 72075f0e00
  1. 1
      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.
*/

Loading…
Cancel
Save