From: Peter Collingbourne Date: Sun, 6 Nov 2011 16:45:46 +0000 (+0000) Subject: Return only the least significant 8 bits of the exit status from X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5ced70d8f8458f41e6dc7ac76ad2e7c63ae33664;p=oota-llvm.git 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 --- diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc index e486e6ec238..7e381684567 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