summaryrefslogtreecommitdiff
path: root/job.c
AgeCommit message (Collapse)AuthorFilesLines
2005-05-31Fixed Savannah bugs #13216 and #13218.Boris Kolpackov1-2/+8
2005-05-08Document the secondary expansion method. Also, some other documentationPaul Smith1-9/+28
cleanups. If we find a make error (invalid makefile syntax or something like that) write back any tokens we have before we exit. If we have waiting jobs (using -j + -l) set an alarm before we sleep on the read() system call, so we can wake up to check the load and start waiting jobs, if there are long-running jobs we would otherwise be waiting for. Suggested by Grant Taylor.
2005-05-03Fix problems with losing tokens in the jobserver, reported by GrantPaul Smith1-685/+37
Taylor. There are two forms of this: first, it was possible to lose tokens when using -j and -l at the same time, because waiting jobs were not checked when determining whether any jobs were outstanding. Second, if you had an exported recursive variable that contained a $(shell ...) function there is a possibility to lose tokens, since a token was taken but the child list was not updated until after the shell function was complete. To resolve this I introduced a new variable that counted the number of tokens we have obtained, rather than checking whether there were any children on the list. I also added some sanity checks to make sure we weren't writing back too many or not enough tokens. And, the master make will drain the token pipe before exiting and compare the count of tokens at the end to what was written there at the beginning. Also: * Ensure a bug in the environment (missing "=") doesn't cause make to core. * Rename the .DEFAULT_TARGET variable to .DEFAULT_GOAL, to match the terminology in the documentation and other variables like MAKECMDGOALS. * Add documentation of the .DEFAULT_GOAL special variable. Still need to document the secondary expansion stuff...
2005-04-08Fix some Savannah bugs.Paul Smith1-0/+8
Updates to docs (still need more work here) and NEWS file. New language.
2004-11-12Patch for command line parsing for VMS from Hartmut Becker.Paul Smith1-0/+11
2004-10-06Apply patch from Alessandro Vesely for WINDOWS32-specific bug # 9748.Paul Smith1-18/+85
2004-09-21Fix some bugs in variable pattern substitution (e.g. $(VAR:A=B)),Paul Smith1-2/+2
reported by Markus Mauhart <qwe123@chello.at>. One was a simple typo; to fix the other we call patsubst_expand() for all instances of variable substitution, even when there is no '%'. We used to call subst_expand() with a special flag set in the latter case, but it didn't work properly in all situations. Easier to just use patsubst_expand() since that's what it is.
2004-05-16Various enhancementsPaul Smith1-6/+30
- OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
2004-03-22Numerous updates and bug fixes.Paul Smith1-120/+117
A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes.
2004-02-24Many compiler warning cleanups.Paul Smith1-1/+1
Small fixes for W32 (from Jonathan Grant <jg-make@jguk.org>) Maintainer enhancements to clean up the tree.
2004-02-23Numerous fixes: patches for OS/2; core for -f ''; makefile updates.Paul Smith1-26/+18
2004-02-21VMS fix.Paul Smith1-24/+6
2004-01-21Many bug fixes etc.Paul Smith1-4/+77
- Apply a fix for the "thundering herd" problem when using "-j -l". This also fixes bug #4693. - Fix bug #7257: allow functions as ifdef arguments - Fix bug #4518: make sure we print all double-colon rules with -p. - Upgrade to autconf 2.58/automake 1.8/gettext 0.13.1 - Various doc cleanups, etc.
2004-01-08Enhancements to the documentation (fixes bugs #1772 and 4898).Paul Smith1-7/+6
Add "!" to the list of shell escape characters: POSIX sh allows it to be used to negate the return value of the command.
2003-07-19Minor updates for Windows and OS/2.Paul Smith1-1/+1
2003-05-02- Fix bug #1405: allow multiple pattern-specific variables to match a target.Paul Smith1-7/+6
- Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
2003-03-25Fix bug #2892.Paul Smith1-8/+9
More OS/2 updates from Andreas Buening. Upgrade build system to autoconf 2.57 and automake 1.7.3.
2003-03-24Add support for OS/2, contributed by Andreas Buening <andreas.buening@nexgo.de>Paul Smith1-59/+452
Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
2002-10-14Convert the source code to use ANSI C style function definitions andPaul Smith1-48/+24
enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem.
2002-08-10Update to a new version of automake and gettext.Paul Smith1-2/+2
Invent a new macro HAVE_DOS_PATHS and change various instances of: #if defined(WINDOWS) || defined(__MSDOS__) to use the new macro instead. This should help make the OS/2 port cleaner, as well. Invent a cvs-clean maintainer target that tries to get the workspace back to the state it was in after a CVS checkout. New language.
2001-11-18Update copyright info.Paul Smith1-1/+1
2001-06-01Fix for EINTR problems when using jobserver.Paul Smith1-27/+77
New translation files. Fix for @+ inside define macros being applied too widely. Various other bug fixes.
2001-05-21Some VMS fixes sent by John Fowler.Paul Smith1-2/+10
Fix: make flags on some lines of define/endef don't affect other lines
2000-07-30* Various fixes; see the ChangeLog.Paul Smith1-1/+1
2000-06-23* Fix -q so it works more correctly.Paul Smith1-26/+33
* Don't print "nothing to do" messages for ":" commands * Update the version to 3.79.1
2000-06-19* Various fixes for problems in the 3.79.0.1 pretest.Paul Smith1-1/+2
2000-06-07* Lots of bug fixes and cleanup; new i18n files, etc.Paul Smith1-18/+18
2000-03-27* A large number of fixes/enhancements. See the ChangeLog.Paul Smith1-13/+8
* Added a new version of the German translation file.
2000-02-05* Updates for VMS, Windows, and DOS ports.Paul Smith1-24/+24
* Clean up some warnings.
2000-01-22* Merge VMS patches by Hartmut Becker.Paul Smith1-44/+539
2000-01-11* Change $(call...) to not expand arguments by default.Paul Smith1-3/+1
* Unify the way arguments are passed to builtin functions in function.c.
1999-11-22* Add new debugging output level selection feature.Paul Smith1-34/+30
1999-11-17* Many cleanups and bugfixes.Paul Smith1-1/+1
* New handling of += in target-specific variables.
1999-10-15* Fix PR/1394.Paul Smith1-12/+13
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
1999-10-13* Fix PR/1379: -n/-q behaves correctly when all commands are recursive.Paul Smith1-0/+3
1999-09-11* Various pre-release cleanups.Paul Smith1-2/+3
1999-08-23* Fix jobserver algorithm again.Paul Smith1-36/+36
* A couple of nits. * Fix considered pruning for double-colon rules.
1999-08-23* Start rewrite of jobserver to avoid unique tokens for debugging.Paul Smith1-70/+48
1999-08-22* Various changes.Paul Smith1-22/+38
1999-08-19* Code cleanup.Paul Smith1-10/+11
1999-08-13* Rework jobserver yet one more time.Paul Smith1-24/+20
* Install the $(if ...) function and document it. Still need some examples.
1999-08-01* Release 3.77.92.3.77.92Paul Smith1-48/+61
* Complete implementation of new jobserver algorithm. * A few minor fixups.
1999-08-01* Applied some DOS updates.Paul Smith1-69/+58
* Started reworking the jobserver algorithm; not complete yet.
1999-07-28* Add gettext macros to start i18n support.Paul Smith1-34/+34
1999-07-24* Some configure fixes.Paul Smith1-129/+126
1999-07-23* Bugfix for NT archive support.Paul Smith1-67/+110
* Rework how the jobserver stuff works.
1999-07-21* Add configure option to enable dmalloc library.Paul Smith1-2/+2
* Various code cleanups.
1999-07-20* Fix memory leaks, fd leaks, and some long-standing bugs recognizing whenPaul Smith1-16/+18
targets need to have their modtimes rechecked (-n, etc.)
1999-07-16* Fix some memory and file descriptor leaks.Paul Smith1-2/+2
1999-07-09* Fixed error rebuilding makefiles with -j>1Paul Smith1-2/+3
* Fixed problem with job pipe and -j>1 when waiting on -l loads.