make -k does not exit with appropriate error code if errors are encountered



Hi!

BSD make does not exit with appropriate error code (2) if it is run with "-k" and errors are encountered.

Please review this patch that fixes this bug:

http://people.freebsd.org/~fjoe/make.diff

Sample BSDmakefile is:

--- cut here ---
all: a b

a:
exit 1

b:
touch ${.TARGET}
--- cut here ---

I'd like to commit the to HEAD soon.

/fjoe

_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • (no subject)
    ... I am having some problems building the arts-1.2.2,1 port. ... ".deps/mcopidl.Tpo"; exit 1; fi ... *** Error code 2 ...
    (freebsd-questions)
  • Problems installing arts-1.2.2,1 port
    ... I am having some problems building the arts-1.2.2,1 port. ... ".deps/mcopidl.Tpo"; exit 1; fi ... *** Error code 2 ...
    (freebsd-questions)
  • Re: exit status
    ... I am attempting to return an error code from a Perl script. ... it seemed easy with the exit() call. ... perldoc -f exit ... show us how you're calling the script and how you're getting the 'error code'. ...
    (comp.lang.perl.misc)
  • Re: Dynamically resizing a buffer
    ... a few calls to exit() in ancient code, so I can't claim I never use ... So do you prefer to handle errors by returning an error code, ... Indeed it could be argued that the second pointer is a different value ...
    (comp.lang.c)
  • Re: bsnmpd breaks buildworld
    ... *** Error code 1 ... Here's a patch that fixes the build failure. ...
    (freebsd-current)