Fix hanging fork and child with -V -E

If we let multiple fuzzers end with -V or -E option, it will cause it to think we are still occupying the cores, even if they are free, once we try to run another job it would return an error that no free nodes are available.

This change fixes that problem.
This commit is contained in:
Konrad Welc
2020-02-27 00:09:26 +01:00
parent 7c17697cae
commit 3549cbb3a2
2 changed files with 3 additions and 1 deletions

View File

@ -1024,6 +1024,7 @@ int main(int argc, char** argv, char** envp) {
if (most_time * 1000 < cur_ms_lv - start_time) {
most_time_key = 2;
stop_soon = 2;
break;
}
@ -1035,6 +1036,7 @@ int main(int argc, char** argv, char** envp) {
if (most_execs <= total_execs) {
most_execs_key = 2;
stop_soon = 2;
break;
}