aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 4b1b38968..6b15aa401 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -221,7 +221,7 @@ int main()
kill(pid, SIGKILL);
}
debug("waitpid(%d)\n", pid);
- if (waitpid(pid, &status, __WALL | WUNTRACED) != pid)
+ if (waitpid(pid, &status, __WALL) != pid)
fail("waitpid failed");
debug("waitpid(%d) returned\n", pid);
// Drain SIGCHLD signals.
@@ -235,7 +235,7 @@ int main()
// We've hit 2 systems that mishandle sigtimedwait.
uint64_t start = current_time_ms();
for (;;) {
- int res = waitpid(pid, &status, __WALL | WUNTRACED | WNOHANG);
+ int res = waitpid(pid, &status, __WALL | WNOHANG);
debug("waitpid(%d)=%d (%d)\n", pid, res, errno);
if (res == pid)
break;
@@ -244,7 +244,7 @@ int main()
debug("killing\n");
kill(-pid, SIGKILL);
kill(pid, SIGKILL);
- int res = waitpid(pid, &status, __WALL | WUNTRACED);
+ int res = waitpid(pid, &status, __WALL);
debug("waitpid(%d)=%d (%d)\n", pid, res, errno);
if (res == pid)
break;