From 6256a9554f9e0f09725bdc669c57bea4288ea94e Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 13 Dec 2011 19:40:06 -0800 Subject: [PATCH] make - Do not try to track stopped/continued processes * There are bugs in make which I haven't tracked down related to the handling of stopped/continued processes. * Work around the problem by removing the use of WUNTRACED in one of the several waitpid() use cases. It is unclear why one would ever want to try to track signals to processes for this case. * This fixes a "couldn't resume %s" error from make when a large -j N build is repeatedly ^Z'd and continued. --- usr.bin/make/job.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index f7c23ce43d..ec69701f36 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -2251,8 +2251,7 @@ Job_CatchChildren(bool block) } for (;;) { - pid = waitpid((pid_t)-1, &status, - (block ? 0 : WNOHANG) | WUNTRACED); + pid = waitpid((pid_t)-1, &status, (block ? 0 : WNOHANG)); if (pid <= 0) break; -- 2.41.0