diff --git a/src/Bot/src/Main.cpp b/src/Bot/src/Main.cpp index 77ff866..9f7ebbe 100644 --- a/src/Bot/src/Main.cpp +++ b/src/Bot/src/Main.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -95,6 +96,10 @@ int main(int argc, const char **args) Jupiter::ReferenceString command, plugins_directory, configs_directory; size_t index; +#if defined SIGPIPE + std::signal(SIGPIPE, SIG_IGN); +#endif // SIGPIPE + #if defined _WIN32 // Sets console to UTF-8 SetConsoleCP(65001);