summaryrefslogtreecommitdiffhomepage
path: root/fuzz/fuzz-wrapfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/fuzz-wrapfd.c')
-rw-r--r--fuzz/fuzz-wrapfd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fuzz/fuzz-wrapfd.c b/fuzz/fuzz-wrapfd.c
index 02f293d..1e2f4f6 100644
--- a/fuzz/fuzz-wrapfd.c
+++ b/fuzz/fuzz-wrapfd.c
@@ -258,3 +258,15 @@ int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds,
return ret;
}
+int fuzz_kill(pid_t pid, int sig) {
+ if (fuzz.fuzzing) {
+ TRACE(("fuzz_kill ignoring pid %d signal %d", (pid), sig))
+ if (sig >= 0) {
+ return 0;
+ } else {
+ errno = EINVAL;
+ return -1;
+ }
+ }
+ return kill(pid, sig);
+}