From b9fe622b6f3b3a0abba1eee0d71285c7329c89d2 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 17 Sep 2018 22:59:09 +0200 Subject: Catch SIGPIPE to prevent spurious exiting --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index c863cca..ecf48df 100644 --- a/main.cpp +++ b/main.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #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(); -- cgit v1.2.3-70-g09d2