1
0
Fork 0

Merge pull request #2487 from cuberite/sigpipe

Ignore Sigpipe
This commit is contained in:
Mattes D 2015-09-19 22:12:39 +02:00
commit 7ecace5939
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))