diff options
author | harti <harti@FreeBSD.org> | 2005-05-12 14:16:44 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-05-12 14:16:44 +0000 |
commit | e7ab78380c4d30d28dbf699ac0bffeb881f56c83 (patch) | |
tree | 62f3bf0ee1d651af1f65a442f72505ae0f4ba19c /usr.bin/make/job.c | |
parent | 1fd70549f81b5f11ba2eac3355822f193aae07b6 (diff) | |
download | FreeBSD-src-e7ab78380c4d30d28dbf699ac0bffeb881f56c83.zip FreeBSD-src-e7ab78380c4d30d28dbf699ac0bffeb881f56c83.tar.gz |
Fix the fix for bin/72510 applied in job.c:1.70. Actually there have
been two maxJobs variables: one static in job.c and one global used in
main.c and parse.c. Makeing one global out of these was the wrong way
to fix the problem. Instead rename the global one to jobLimit and keep
maxJobs static in job.c.
Suggested by: rwatson
PR: bin/72510
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index f5b555b..279fb66 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -400,7 +400,12 @@ static struct Shell *commandShell = NULL; static char *shellPath = NULL; /* full pathname of executable image */ static char *shellName = NULL; /* last component of shell */ -int maxJobs; /* The most children we can run at once */ +/* + * The maximum number of jobs that may run. This is initialize from the + * -j argument for the leading make and from the FIFO for sub-makes. + */ +static int maxJobs; + static int nJobs; /* The number of children currently running */ /* The structures that describe them */ |