aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 64d84c394..4e6a37055 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -1078,6 +1078,10 @@ void execute_call(thread_t* th)
th->reserrno = errno;
if (th->res == -1 && th->reserrno == 0)
th->reserrno = EINVAL; // our syz syscalls may misbehave
+ if (call->attrs.ignore_return) {
+ th->res = 0;
+ th->reserrno = 0;
+ }
if (flag_coverage) {
cover_collect(&th->cov);
if (th->cov.size >= kCoverSize)