From 0e8ea0a357a07311713c0bb405f335b6d331d955 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 31 Jan 2019 09:16:58 +0100 Subject: executor, pkg/ipc: simplify retry handling Remove kRetryStatus, it's effectively the same as exiting with 0. Remove ipc.ExecutorFailure, nobody uses it. Simplify few other minor things around exit status handling. --- executor/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index cf4a204fc..07cb7532c 100644 --- a/executor/common.h +++ b/executor/common.h @@ -611,9 +611,10 @@ static void loop(void) break; } #if SYZ_EXECUTOR - status = WEXITSTATUS(status); - if (status == kFailStatus) + if (WEXITSTATUS(status) == kFailStatus) { + errno = 0; fail("child failed"); + } reply_execute(0); #endif #if SYZ_EXECUTOR || SYZ_USE_TMP_DIR -- cgit mrf-deployment