Make the code handle SIGTERM.

This way the pcu can be easily stopped with a sysvinit script.
This commit is contained in:
Holger Hans Peter Freyther 2013-03-19 18:33:06 +04:00 committed by Ivan Kluchnikov
parent 81a12be317
commit 72075f0e00
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ void sighandler(int sigset)
switch (sigset) {
case SIGINT:
/* If another signal is received afterwards, the program
* is terminated without finishing shutdown process.