change: slaves only sync from masters

This commit is contained in:
van Hauser
2020-05-15 09:27:15 +02:00
parent 564399bd75
commit d536ddc240
9 changed files with 89 additions and 45 deletions

View File

@ -1065,8 +1065,21 @@ int main(int argc, char **argv_orig, char **envp) {
init_count_class16();
if (afl->is_master && check_master_exists(afl) == 1) {
WARNF("It is wasteful to run more than one master!");
}
setup_dirs_fds(afl);
if (afl->is_slave && check_master_exists(afl) == 0) {
WARNF("no -M master found. You need to run one master!");
sleep(5);
}
setup_custom_mutators(afl);
setup_cmdline_file(afl, argv + optind);