From: Andrew Tridgell Date: Mon, 6 Jan 2003 01:54:29 +0000 (+0100) Subject: feeble attempt to handle WIFSIGNALED X-Git-Tag: v2.0~11 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=456741bdc50011e4309f196ab08d5a6bf6e89703;p=thirdparty%2Fccache.git feeble attempt to handle WIFSIGNALED --- diff --git a/execute.c b/execute.c index f3fc5c67f..d36df63dd 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); }