diff options
author | Mattes D <github@xoft.cz> | 2015-09-19 22:12:39 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-09-19 22:12:39 +0200 |
commit | 7ecace59399a63b225c2cea06ca8dc05a5d1acc2 (patch) | |
tree | a4b176c1467fb5f5e68db45aedf2c340c00bff7b /src | |
parent | Merge pull request #2486 from cuberite/clientPerformance (diff) | |
parent | Ignore Sigpipe (diff) | |
download | cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.tar cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.tar.gz cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.tar.bz2 cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.tar.lz cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.tar.xz cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.tar.zst cuberite-7ecace59399a63b225c2cea06ca8dc05a5d1acc2.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 34285c767..b9c3ae0bc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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)) |