daily automatic beautifier

This commit is contained in:
MosesAdmin 2015-12-09 00:00:35 +00:00
parent 2da95fe74a
commit 59365f2bd3
41 changed files with 146 additions and 145 deletions

View File

@ -146,11 +146,9 @@ signal_handler(int signum)
{
if (signum == SIGALRM) {
exit(0); // that's what we expected from the child process after forking
}
else if (signum == SIGTERM || signum == SIGKILL) {
} else if (signum == SIGTERM || signum == SIGKILL) {
exit(0);
}
else {
} else {
std::cerr << "Unexpected signal " << signum << std::endl;
exit(signum);
}
@ -344,7 +342,10 @@ int decoder_main(int argc, char const** argv)
pid_t pid;
if (params.GetParam("daemon")) {
pid = fork();
if (pid) { pause(); exit(0); } // parent process
if (pid) {
pause(); // parent process
exit(0);
}
}
#endif
// setting "-show-weights" -> just dump out weights and exit