diff options
-rw-r--r-- | main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |