1
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

View File

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