diff options
| author | Kevin Lo <kevlo@FreeBSD.org> | 2013-07-04 03:24:58 +0000 |
|---|---|---|
| committer | Kevin Lo <kevlo@FreeBSD.org> | 2013-07-04 03:24:58 +0000 |
| commit | ed74b69c2d1df2c8ef854413751a7f3de724b457 (patch) | |
| tree | a31b0bdd56e9459d9c3646ace0a105fa2d4d307c /usr.bin/make | |
| parent | 411286bfe1cfcba0f746329294daa650737a9afa (diff) | |
Notes
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/job.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index bc1d6a076494..6fee0eca78c3 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -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) ; } |
