Ignore SIGPIPE

If there's no reading end (client closed connection) and quark
tries to write to the socket, it will get a SIGPIPE.  Just ignore it.
This commit is contained in:
sin 2014-08-13 23:26:40 +01:00 committed by FRIGN
parent 5d20e3dc27
commit 8fdfa36914

View file

@ -531,6 +531,7 @@ main(int argc, char *argv[]) {
signal(SIGQUIT, sighandler); signal(SIGQUIT, sighandler);
signal(SIGABRT, sighandler); signal(SIGABRT, sighandler);
signal(SIGTERM, sighandler); signal(SIGTERM, sighandler);
signal(SIGPIPE, SIG_IGN);
/* init */ /* init */
setbuf(stdout, NULL); /* unbuffered stdout */ setbuf(stdout, NULL); /* unbuffered stdout */