diff --git a/worker/src/lib.cpp b/worker/src/lib.cpp index 705e1b7981..f1ba68a62b 100644 --- a/worker/src/lib.cpp +++ b/worker/src/lib.cpp @@ -20,8 +20,6 @@ #include #include #include // sigaction() -#include // std::_Exit(), std::genenv() -#include // std::cerr, std::endl #include void IgnoreSignals(); @@ -225,7 +223,9 @@ void IgnoreSignals() err = sigfillset(&act.sa_mask); if (err != 0) + { MS_THROW_ERROR("sigfillset() failed: %s", std::strerror(errno)); + } for (auto& kv : ignoredSignals) { @@ -235,7 +235,9 @@ void IgnoreSignals() err = sigaction(sigId, &act, nullptr); if (err != 0) + { MS_THROW_ERROR("sigaction() failed for signal %s: %s", sigName.c_str(), std::strerror(errno)); + } } #endif } diff --git a/worker/src/main.cpp b/worker/src/main.cpp index 212b14ec26..b7aefc0198 100644 --- a/worker/src/main.cpp +++ b/worker/src/main.cpp @@ -3,7 +3,7 @@ #include "MediaSoupErrors.hpp" #include "lib.hpp" -#include // std::_Exit(), std::genenv() +#include // std::_Exit() #include static constexpr int ConsumerChannelFd{ 3 };