From 105b98bb95b255963d2c28c5e3304745866d2122 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 31 Aug 2016 12:50:07 +0200 Subject: [PATCH] Prevent coredump spam on production builds --- src/input/mist_in.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/mist_in.cpp b/src/input/mist_in.cpp index 1fa81f91..cb2aceae 100644 --- a/src/input/mist_in.cpp +++ b/src/input/mist_in.cpp @@ -31,6 +31,7 @@ int main(int argc, char * argv[]) { } } conf.activate(); + uint64_t reTimer = 0; while (conf.is_active){ pid_t pid = fork(); if (pid == 0){ @@ -70,6 +71,8 @@ int main(int argc, char * argv[]) { break; }else{ DEBUG_MSG(DLVL_DEVEL, "Input for stream %s uncleanly shut down! Restarting...", streamName.c_str()); + Util::wait(reTimer); + reTimer += 1000; } } if (conv.needsLock()){