#580 ignore SIGPIPE signal

This signal is received when socket hit connection reset by peer
state, which may happen in transient network failures.
master
OpenGnSys Support Team 2019-01-11 01:01:32 +01:00
parent 162d7808b0
commit 9fc0037bd7
1 changed files with 3 additions and 0 deletions

View File

@ -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);
/*--------------------------------------------------------------------------------------------------------