summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-09-19 22:12:39 +0200
committerMattes D <github@xoft.cz>2015-09-19 22:12:39 +0200
commit7ecace59399a63b225c2cea06ca8dc05a5d1acc2 (patch)
treea4b176c1467fb5f5e68db45aedf2c340c00bff7b /src
parentMerge pull request #2486 from cuberite/clientPerformance (diff)
parentIgnore Sigpipe (diff)
downloadcuberite-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 '')
-rw-r--r--src/main.cpp4
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))