Prevent coredump spam on production builds
This commit is contained in:
parent
a93fddf4e2
commit
105b98bb95
1 changed files with 3 additions and 0 deletions
|
@ -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()){
|
||||||
|
|
Loading…
Add table
Reference in a new issue