aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-01-31 09:16:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-31 11:35:53 +0100
commit0e8ea0a357a07311713c0bb405f335b6d331d955 (patch)
tree64f6b6873a549ced37cd004f6ce5ba46785140d0 /executor/common.h
parent25e10a043498087f9427f0698b341d051c310fc4 (diff)
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.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h5
1 files changed, 3 insertions, 2 deletions
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