diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-01-06 02:54:29 +0100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-01-06 02:54:29 +0100 |
commit | 456741bdc50011e4309f196ab08d5a6bf6e89703 (patch) | |
tree | 1d0ca21639fb84aa805d9e4ef4a3392ee2c5c9ee /execute.c | |
parent | 64fc20ee97bac3f055b8b1a8f116af95ad103c43 (diff) | |
download | ccache-456741bdc50011e4309f196ab08d5a6bf6e89703.tar.gz |
feeble attempt to handle WIFSIGNALED
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -59,5 +59,9 @@ int execute(char **argv, fatal("waitpid failed"); } + if (WEXITSTATUS(status) == 0 && WIFSIGNALED(status)) { + return -1; + } + return WEXITSTATUS(status); } |