diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-06 16:45:46 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-06 16:45:46 +0000 |
commit | 5ced70d8f8458f41e6dc7ac76ad2e7c63ae33664 (patch) | |
tree | 528a286d78a655ef23b8e8bfc6ab3e439a92d421 /lib/Support | |
parent | 0dd4f10c99419c1acb27ead200cee7b8d683b488 (diff) |
Return only the least significant 8 bits of the exit status from
Process::Wait on Windows (mimicing POSIX behaviour).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Windows/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc index e486e6ec23..7e38168456 100644 --- a/lib/Support/Windows/Program.inc +++ b/lib/Support/Windows/Program.inc @@ -367,7 +367,7 @@ Program::Wait(const Path &path, return -2; } - return status; + return status & 0377; } bool |