From 3e137e030f31ba2f22719b94b62a184db766f2b4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 15 Feb 2017 16:12:00 +0100 Subject: executor: treat EAGAIN as transient failure as ENOMEM --- executor/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor') 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) -- cgit mrf-deployment