Remove unnecessary cast to pid_t.
This commit is contained in:
parent
411286bfe1
commit
ed74b69c2d
@ -316,7 +316,7 @@ sigchild(int signo __unused)
|
||||
int status;
|
||||
struct child *cp;
|
||||
|
||||
while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
|
||||
while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
|
||||
cp = findchild(pid);
|
||||
if (cp->free)
|
||||
delchild(cp);
|
||||
|
@ -2128,7 +2128,7 @@ Job_CatchChildren(Boolean block)
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
pid = waitpid((pid_t)-1, &status,
|
||||
pid = waitpid(-1, &status,
|
||||
(block ? 0 : WNOHANG) | WUNTRACED);
|
||||
if (pid <= 0)
|
||||
break;
|
||||
@ -2628,7 +2628,7 @@ Job_AbortAll(void)
|
||||
/*
|
||||
* Catch as many children as want to report in at first, then give up
|
||||
*/
|
||||
while (waitpid((pid_t)-1, &foo, WNOHANG) > 0)
|
||||
while (waitpid(-1, &foo, WNOHANG) > 0)
|
||||
;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user