scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit efd759bbfba531565f41843ec10d252a917f8cde
parent ba45b797ed7a87840029720f7386e901fbf022dc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 21 Jan 2024 16:12:17 +0100

make: Check signal after updating

When the signal arrives the child process dies with
an error code and the signal flag was not checked ever.
For that reason is needed to check the signal handler
after update (in fact, it is the main point where it
has to be checked).

Diffstat:
Msrc/cmd/make/rules.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/cmd/make/rules.c b/src/cmd/make/rules.c @@ -492,6 +492,9 @@ rebuild(Target *tp, int *buildp) if (r == 0) return 0; + if (stop) + cleanup(tp); + exitstatus = 1; if (!kflag)