comparison fuzz/fuzz-wrapfd.c @ 1791:685b47d8faf7

fuzz: wrap kill()
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Jan 2021 21:47:56 +0800
parents 97ad26e397a5
children 19b28d2fbe30
comparison
equal deleted inserted replaced
1790:42745af83b7d 1791:685b47d8faf7
256 } 256 }
257 } 257 }
258 return ret; 258 return ret;
259 } 259 }
260 260
261 int fuzz_kill(pid_t pid, int sig) {
262 if (fuzz.fuzzing) {
263 TRACE(("fuzz_kill ignoring pid %d signal %d", (pid), sig))
264 if (sig >= 0) {
265 return 0;
266 } else {
267 errno = EINVAL;
268 return -1;
269 }
270 }
271 return kill(pid, sig);
272 }