Displaying 1 result from an estimated 1 matches for "dowait_waitcmd".
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Only clear gotsigchld when waiting for everything
...(DOWAIT_NORMAL, NULL) > 0)
- continue;
+ dowait(DOWAIT_NORMAL, NULL);
for (jp = curjob; jp; jp = jp->prev_job) {
if (!(mode & SHOW_CHANGED) || jp->changed)
@@ -613,7 +610,7 @@ waitcmd(int argc, char **argv)
jp->waited = 1;
jp = jp->prev_job;
}
- if (dowait(DOWAIT_WAITCMD, 0) <= 0)
+ if (!dowait(DOWAIT_WAITCMD, 0))
goto sigout;
}
}
@@ -635,9 +632,8 @@ start:
} else
job = getjob(*argv, 0);
/* loop until process terminated or stopped */
- while (job->state == JOBRUNNING)
- if (dowait(DOWAIT_WAITCMD, 0) <= 0)
- goto sigout;
+ if (!...