summaryrefslogtreecommitdiff
path: root/netbsd/arch.c
diff options
context:
space:
mode:
Diffstat (limited to 'netbsd/arch.c')
-rw-r--r--netbsd/arch.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/netbsd/arch.c b/netbsd/arch.c
index 63b758e5..bacd1ee1 100644
--- a/netbsd/arch.c
+++ b/netbsd/arch.c
@@ -138,15 +138,12 @@ static bool arch_checkWait(run_t* run) {
for (;;) {
int status;
/* Wait for the whole process group of run->pid */
- pid_t pid = wait6(P_SID, run->pid, &status,
+ pid_t pid = TEMP_FAILURE_RETRY(wait6(P_SID, run->pid, &status,
WALLSIG | WALTSIG | WTRAPPED | WEXITED | WUNTRACED | WCONTINUED | WSTOPPED | WNOHANG,
- NULL, NULL);
+ NULL, NULL));
if (pid == 0) {
return false;
}
- if (pid == -1 && errno == EINTR) {
- return false;
- }
if (pid == -1 && errno == ECHILD) {
LOG_D("No more processes to track");
return true;