aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common.h b/executor/common.h
index 6fc798280..34601df0f 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -59,8 +59,9 @@ const int kRetryStatus = 69;
// So call the syscall directly.
__attribute__((noreturn)) void doexit(int status)
{
+ volatile unsigned i;
syscall(__NR_exit_group, status);
- for (volatile unsigned i = 0;; i++) {
+ for (i = 0;; i++) {
}
}
@@ -693,7 +694,6 @@ void loop()
uint64_t start = current_time_ms();
for (;;) {
int res = waitpid(-1, &status, __WALL | WNOHANG);
- int errno0 = errno;
if (res == pid)
break;
usleep(1000);