summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index c863cca..ecf48df 100644
--- a/main.cpp
+++ b/main.cpp
@@ -15,6 +15,7 @@
#include <cassert>
#include <errno.h>
#include <unistd.h>
+#include <signal.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "scheduler.h"
@@ -360,6 +361,8 @@ int main(int argc, char **argv) {
mkdirp(playerlogdir);
mkdirp(gamelogdir);
+ signal(SIGPIPE, [](int){});
+
Scheduler scheduler(num_threads);
fullCompetition(scheduler, players, params);
scheduler.finish();