mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-18 06:58:45 +00:00
Changed: Remove SIGPIPE signal listener (hack for libwww)
This commit is contained in:
parent
3d3e7355e0
commit
810af7cc71
1 changed files with 0 additions and 12 deletions
|
@ -106,15 +106,6 @@ void quitCrashReport ()
|
||||||
contReset(CrashCounterSock);
|
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 :
|
// MAIN :
|
||||||
// Entry for the Application.
|
// Entry for the Application.
|
||||||
|
@ -548,9 +539,6 @@ int main(int argc, char **argv)
|
||||||
// set process name for logs
|
// set process name for logs
|
||||||
CLog::setProcessName(filename);
|
CLog::setProcessName(filename);
|
||||||
|
|
||||||
// ignore signal SIGPIPE generated by libwww
|
|
||||||
signal(SIGPIPE, sigHandler);
|
|
||||||
|
|
||||||
// Delete the .sh file because it s not useful anymore
|
// Delete the .sh file because it s not useful anymore
|
||||||
if (NLMISC::CFile::fileExists("updt_nl.sh"))
|
if (NLMISC::CFile::fileExists("updt_nl.sh"))
|
||||||
NLMISC::CFile::deleteFile("updt_nl.sh");
|
NLMISC::CFile::deleteFile("updt_nl.sh");
|
||||||
|
|
Loading…
Reference in a new issue