From 3fafbae5c31ab24359dccebd529f094be37c1552 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 3 Jan 2016 17:49:02 +0100 Subject: [PATCH] Changed: Remove SIGPIPE signal listener (hack for libwww) --- code/ryzom/client/src/client.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 1c5476b39..61b30b4c9 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -106,15 +106,6 @@ void quitCrashReport () contReset(CrashCounterSock); } -#ifndef NL_OS_WINDOWS -static void sigHandler(int Sig) -{ - // redirect the signal for the next time - signal(Sig, sigHandler); - nlwarning("Ignoring signal SIGPIPE"); -} -#endif - //--------------------------------------------------- // MAIN : // Entry for the Application. @@ -548,9 +539,6 @@ int main(int argc, char **argv) // set process name for logs CLog::setProcessName(filename); - // ignore signal SIGPIPE generated by libwww - signal(SIGPIPE, sigHandler); - // Delete the .sh file because it s not useful anymore if (NLMISC::CFile::fileExists("updt_nl.sh")) NLMISC::CFile::deleteFile("updt_nl.sh");