make: Check signal after updating - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit efd759bbfba531565f41843ec10d252a917f8cde
 (DIR) parent ba45b797ed7a87840029720f7386e901fbf022dc
 (HTM) 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:
         M src/cmd/make/rules.c                |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) 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)