diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index d86a22e..431e859 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -816,10 +816,12 @@ const uint8_t* /* end ptr */ TNetwork::SendSplit(TClient& c, ip::tcp::socket& So #include #include #include +#include #endif void TNetwork::SplitLoad(TClient& c, size_t Offset, size_t End, bool D, const std::string& Name) { TScopedTimer timer(fmt::format("Download of {}-{} for '{}'", Offset, End, Name)); #if defined(BEAMMP_LINUX) + signal(SIGPIPE, SIG_IGN); // on linux, we can use sendfile(2)! int fd = ::open(Name.c_str(), O_RDONLY); if (fd < 0) {