diff options
Diffstat (limited to 'lib/System/Unix')
-rw-r--r-- | lib/System/Unix/Program.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 86a5431..1bf1bc9 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -208,12 +208,12 @@ Program::ExecuteAndWait(const Path& path, // Return the proper exit status. 0=success, >0 is programs' exit status, // <0 means a signal was returned, -9999999 means the program dumped core. int result = 0; - if (WIFEXITED (status)) + if (WIFEXITED(status)) result = WEXITSTATUS(status); else if (WIFSIGNALED(status)) result = 0 - WTERMSIG(status); #ifdef WCOREDUMP - if (WCOREDUMP(status)) + else if (WCOREDUMP(status)) result |= 0x01000000; #endif return result; |