From 9fc0037bd74da121a818804ed58a110f0fda5e9f Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 11 Jan 2019 01:01:32 +0100 Subject: #580 ignore SIGPIPE signal This signal is received when socket hit connection reset by peer state, which may happen in transient network failures. --- sources/ogAdmServer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index a35f40a..8e24d58 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -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); /*-------------------------------------------------------------------------------------------------------- -- cgit v1.2.3-18-g5258