Make the code handle SIGTERM.
This way the pcu can be easily stopped with a sysvinit script.
This commit is contained in:
parent
81a12be317
commit
72075f0e00
|
@ -114,6 +114,7 @@ void sighandler(int sigset)
|
||||||
|
|
||||||
switch (sigset) {
|
switch (sigset) {
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
|
case SIGTERM:
|
||||||
/* If another signal is received afterwards, the program
|
/* If another signal is received afterwards, the program
|
||||||
* is terminated without finishing shutdown process.
|
* is terminated without finishing shutdown process.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue