summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-09 22:55:44 +0000
committerPaul Smith <psmith@gnu.org>1999-07-09 22:55:44 +0000
commit8df9d5402017dbc6af67e9baa1c0baac5c59f4ff (patch)
tree20eb661a53f89abae673007470e9b1e5a569689e /job.c
parent9035aa27b7485bfdc12f8c577208a20a8b3747b6 (diff)
downloadgunmake-8df9d5402017dbc6af67e9baa1c0baac5c59f4ff.tar.gz
* Fixed error rebuilding makefiles with -j>1
* Fixed problem with job pipe and -j>1 when waiting on -l loads.
Diffstat (limited to 'job.c')
-rw-r--r--job.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/job.c b/job.c
index 787678d..caabb1e 100644
--- a/job.c
+++ b/job.c
@@ -1133,8 +1133,9 @@ start_waiting_job (c)
{
#ifdef MAKE_JOBSERVER
/* If this is not a recurse command and we are controlling
- multiple jobs, obtain a token before starting child. */
- if (job_fds[0] >= 0 && !f->cmds->any_recurse)
+ multiple jobs, and we don't yet have one, obtain a token before
+ starting child. */
+ if (job_fds[0] >= 0 && !f->cmds->any_recurse && !c->job_token)
{
fd_set rfds;