version 1.1.1.1.2.13, 2011/12/14 15:09:31
|
version 1.1.1.1.2.14, 2011/12/29 14:13:13
|
Line 51 sigHand(int sig)
|
Line 51 sigHand(int sig)
|
case SIGCHLD: |
case SIGCHLD: |
while (waitpid(-1, &stat, WNOHANG) > 0); |
while (waitpid(-1, &stat, WNOHANG) > 0); |
break; |
break; |
|
case SIGPIPE: |
|
break; |
} |
} |
} |
} |
|
|
Line 157 main(int argc, char **argv)
|
Line 159 main(int argc, char **argv)
|
sigaction(SIGHUP, &sa, NULL); |
sigaction(SIGHUP, &sa, NULL); |
sigaction(SIGTERM, &sa, NULL); |
sigaction(SIGTERM, &sa, NULL); |
sigaction(SIGCHLD, &sa, NULL); |
sigaction(SIGCHLD, &sa, NULL); |
|
sigaction(SIGPIPE, &sa, NULL); |
ioDEBUG(2, "Service is ready for start engine ..."); |
ioDEBUG(2, "Service is ready for start engine ..."); |
|
|
if ((sock = srv_Socket(&cfg)) == -1) { |
if ((sock = srv_Socket(&cfg)) == -1) { |