]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feeble attempt to handle WIFSIGNALED
authorAndrew Tridgell <tridge@samba.org>
Mon, 6 Jan 2003 01:54:29 +0000 (02:54 +0100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Jan 2003 01:54:29 +0000 (02:54 +0100)
execute.c

index f3fc5c67fc33e7ac994dafedbb3c9bf5b21a161c..d36df63dd77c54a5a6203f3f4d54ce1421663857 100644 (file)
--- a/execute.c
+++ b/execute.c
@@ -59,5 +59,9 @@ int execute(char **argv,
                fatal("waitpid failed");
        }
 
+       if (WEXITSTATUS(status) == 0 && WIFSIGNALED(status)) {
+               return -1;
+       }
+
        return WEXITSTATUS(status);
 }