|
|
|
|
@ -166,7 +166,7 @@ int run(const char * const args[]) {
|
|
|
|
|
#if INNOEXTRACT_HAVE_WAITPID |
|
|
|
|
int status; |
|
|
|
|
(void)waitpid(pid, &status, 0); |
|
|
|
|
if(WIFEXITED(status) && (WEXITSTATUS(status) >= 0 && WEXITSTATUS(status) < 127)) { |
|
|
|
|
if(WIFEXITED(status) && WEXITSTATUS(status) < 127) { |
|
|
|
|
return WEXITSTATUS(status); |
|
|
|
|
} else if(WIFSIGNALED(status)) { |
|
|
|
|
return -WTERMSIG(status); |
|
|
|
|
|