Skip to content

Commit

Permalink
Merge pull request #1817 from nicolasnoble/nosigpipe
Browse files Browse the repository at this point in the history
Ignoring sigpipes because libuv sucks.
  • Loading branch information
nicolasnoble authored Dec 22, 2024
2 parents e9dec5f + 2087f98 commit 1e0eaf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ int pcsxMain(int argc, char **argv) {
PCSX::g_system = system;
auto sigint = std::signal(SIGINT, [](auto signal) { PCSX::g_system->quit(-1); });
auto sigterm = std::signal(SIGTERM, [](auto signal) { PCSX::g_system->quit(-1); });
#ifndef _WIN32
signal(SIGPIPE, SIG_IGN);
#endif
const auto &logfileArgOpt = args.get<std::string>("logfile");
const PCSX::u8string logfileArg = MAKEU8(logfileArgOpt.has_value() ? logfileArgOpt->c_str() : "");
if (!logfileArg.empty()) system->useLogfile(logfileArg);
Expand Down

0 comments on commit 1e0eaf6

Please sign in to comment.