diff options
author | hexcoder <hexcoder-@users.noreply.github.com> | 2019-10-11 22:54:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 22:54:36 +0200 |
commit | ebf624772aa28ad0ce2a6e6c7abd8a9d1f94adc0 (patch) | |
tree | f3694ce6d7c58f5025cec2e082b4947d30dbcbf4 /src | |
parent | 287828fe0bef3224e5e4f0b80e880235570876e4 (diff) | |
parent | b33a6addcc9e52a3050a0e25b93dce10fd4cc644 (diff) | |
download | afl++-ebf624772aa28ad0ce2a6e6c7abd8a9d1f94adc0.tar.gz |
Merge pull request #79 from devnexen/netbsd_binding_to_free_cpu
NetBSD binding to cpu, ignore sleeping processes.
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 127f5217..91d4c727 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -166,7 +166,7 @@ void bind_to_free_cpu(void) { for (i = 0; i < proccount; i++) { - if (procs[i].p_cpuid < sizeof(cpu_used)) cpu_used[procs[i].p_cpuid] = 1; + if (procs[i].p_cpuid < sizeof(cpu_used) && procs[i].p_pctcpu > 0) cpu_used[procs[i].p_cpuid] = 1; } |