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

@ -401,19 +401,15 @@ void sync_fuzzers(afl_state_t *afl) {
}
/*
// a slave only syncs from a master, a master syncs from everyone
if (likely(afl->is_slave)) {
// a slave only syncs from a master, a master syncs from everyone
if (likely(afl->is_slave)) {
u8 x = alloc_printf("%s/%s/is_master", afl->sync_dir, sd_ent->d_name);
int res = access(x, F_OK);
free(x);
if (res != 0)
continue;
u8 *x = alloc_printf("%s/%s/is_master", afl->sync_dir, sd_ent->d_name);
int res = access(x, F_OK);
free(x);
if (likely(res != 0)) continue;
}
*/
}
/* Skip anything that doesn't have a queue/ subdirectory. */