aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-02-15 16:12:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-02-15 16:12:00 +0100
commit3e137e030f31ba2f22719b94b62a184db766f2b4 (patch)
tree7df41f5e532feb12f4b83841270f97b30ccc196d /executor/common.h
parent72ece80652c457914340ff454cf4c479c2cad65a (diff)
executor: treat EAGAIN as transient failure as ENOMEM
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common.h b/executor/common.h
index 6e92743f5..b6b3324d9 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -82,9 +82,9 @@ __attribute__((noreturn)) void fail(const char* msg, ...)
vfprintf(stderr, msg, args);
va_end(args);
fprintf(stderr, " (errno %d)\n", e);
- // ENOMEM is frequent cause of failures in fuzzing context,
+ // ENOMEM/EAGAIN is frequent cause of failures in fuzzing context,
// so handle it here as non-fatal error.
- doexit(e == ENOMEM ? kRetryStatus : kFailStatus);
+ doexit((e == ENOMEM || e == EAGAIN) ? kRetryStatus : kFailStatus);
}
#if defined(SYZ_EXECUTOR)