1
0
Fork 0

Ignore Sigpipe

This commit is contained in:
tycho 2015-09-19 17:54:42 +01:00 committed by Mattes D
parent 7c884df26c
commit 3c5ba56aba
1 changed files with 4 additions and 0 deletions

View File

@ -472,6 +472,10 @@ int main(int argc, char **argv)
#endif // SIGABRT_COMPAT
#endif
#ifdef __unix__
std::signal(SIGPIPE, SIG_IGN);
#endif
#ifdef _WIN32
if (!SetConsoleCtrlHandler((PHANDLER_ROUTINE)CtrlHandler, TRUE))