version 1.2.2.9, 2012/06/01 11:39:15
|
version 1.2.2.10, 2012/06/26 14:51:33
|
Line 43 sigHand(int sig)
|
Line 43 sigHand(int sig)
|
} |
} |
|
|
ioLIBERR(cfg); |
ioLIBERR(cfg); |
|
case SIGINT: |
case SIGTERM: |
case SIGTERM: |
ioDEBUG(1, "Terminate MQTT service in progress"); |
ioDEBUG(1, "Terminate MQTT service in progress"); |
Kill++; |
Kill++; |
Line 158 main(int argc, char **argv)
|
Line 159 main(int argc, char **argv)
|
sigemptyset(&sa.sa_mask); |
sigemptyset(&sa.sa_mask); |
sa.sa_handler = sigHand; |
sa.sa_handler = sigHand; |
sigaction(SIGHUP, &sa, NULL); |
sigaction(SIGHUP, &sa, NULL); |
|
sigaction(SIGINT, &sa, NULL); |
sigaction(SIGTERM, &sa, NULL); |
sigaction(SIGTERM, &sa, NULL); |
sigaction(SIGCHLD, &sa, NULL); |
sigaction(SIGCHLD, &sa, NULL); |
sigaction(SIGPIPE, &sa, NULL); |
sigaction(SIGPIPE, &sa, NULL); |