use termination function on SIGPIPE (write to closed socket) too
This commit is contained in:
1 parent
decb627924
commit
c0f4a7008c
3 files changed
+3
-1
No files matched your search
@@ -161,6 +161,7 @@ int main(int argc, char **argv)
|
||||
sigaction(SIGINT, &sa, NULL); // Ctrl-C
|
||||
sigaction(SIGTERM, &sa, NULL); // "regular" kill
|
||||
sigaction(SIGHUP, &sa, NULL); // kill -HUP
|
||||
sigaction(SIGPIPE, &sa, NULL); // write to closed socket
|
||||
sigaction(SIGKILL, &sa, NULL); // kill -9 [cannot be trapped; but ...]
|
||||
|
||||
/* setup signal handler for children to avoid zombies */
|
||||
|
||||
Reference in new issue
Block a user