mirror of https://git.48k.eu/ogserver
#580 ignore SIGPIPE signal
This signal is received when socket hit connection reset by peer state, which may happen in transient network failures.master
parent
162d7808b0
commit
9fc0037bd7
|
@ -3654,6 +3654,9 @@ int main(int argc, char *argv[])
|
|||
int activo=1;
|
||||
int i;
|
||||
|
||||
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
openlog("ogAdmServer", LOG_PID, LOG_DAEMON);
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue