summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-01-06 02:54:29 +0100
committerAndrew Tridgell <tridge@samba.org>2003-01-06 02:54:29 +0100
commit456741bdc50011e4309f196ab08d5a6bf6e89703 (patch)
tree1d0ca21639fb84aa805d9e4ef4a3392ee2c5c9ee /execute.c
parent64fc20ee97bac3f055b8b1a8f116af95ad103c43 (diff)
downloadccache-456741bdc50011e4309f196ab08d5a6bf6e89703.tar.gz
feeble attempt to handle WIFSIGNALED
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/execute.c b/execute.c
index f3fc5c67..d36df63d 100644
--- 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);
}