summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-19 18:54:42 +0200
committerMattes D <github@xoft.cz>2015-09-19 21:37:07 +0200
commit3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a (patch)
treea4b176c1467fb5f5e68db45aedf2c340c00bff7b /src
parentMerge pull request #2486 from cuberite/clientPerformance (diff)
downloadcuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.tar
cuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.tar.gz
cuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.tar.bz2
cuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.tar.lz
cuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.tar.xz
cuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.tar.zst
cuberite-3c5ba56abaa7084ce2c5d2a95c553c78f0d5ff1a.zip
Diffstat (limited to 'src')
-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))