Prevent coredump spam on production builds

This commit is contained in:
Thulinma 2016-08-31 12:50:07 +02:00
parent a93fddf4e2
commit 105b98bb95

View file

@ -31,6 +31,7 @@ int main(int argc, char * argv[]) {
} }
} }
conf.activate(); conf.activate();
uint64_t reTimer = 0;
while (conf.is_active){ while (conf.is_active){
pid_t pid = fork(); pid_t pid = fork();
if (pid == 0){ if (pid == 0){
@ -70,6 +71,8 @@ int main(int argc, char * argv[]) {
break; break;
}else{ }else{
DEBUG_MSG(DLVL_DEVEL, "Input for stream %s uncleanly shut down! Restarting...", streamName.c_str()); DEBUG_MSG(DLVL_DEVEL, "Input for stream %s uncleanly shut down! Restarting...", streamName.c_str());
Util::wait(reTimer);
reTimer += 1000;
} }
} }
if (conv.needsLock()){ if (conv.needsLock()){