From 57cc853504c7db756b6e47922b12d597b41211be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20Pr=C3=BCfer?= Date: Sat, 1 Aug 2026 17:22:12 +0200 Subject: [PATCH] Disable SIGPIPE signal --- linux_server/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux_server/main.cpp b/linux_server/main.cpp index 7a217d6..e25ce8b 100644 --- a/linux_server/main.cpp +++ b/linux_server/main.cpp @@ -19,6 +19,8 @@ #include #include +#include + using namespace std; // --------------------------------------------------------------------------- @@ -43,6 +45,10 @@ char ASRequestExchangeBuffer[2048]; int main(int argc, char* argv[]) { + + //- ignore PIPE signal + signal(SIGPIPE, SIG_IGN); + if (argc >= 2) { Network::setIPAddr(string(argv[1])); }