diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-02-15 16:12:00 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-02-15 16:12:00 +0100 |
| commit | 3e137e030f31ba2f22719b94b62a184db766f2b4 (patch) | |
| tree | 7df41f5e532feb12f4b83841270f97b30ccc196d /executor | |
| parent | 72ece80652c457914340ff454cf4c479c2cad65a (diff) | |
executor: treat EAGAIN as transient failure as ENOMEM
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common.h | 4 |
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) |
