From bf025fdb54a7676eca144a55a44397fca12f6032 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Sun, 6 Nov 2011 16:45:46 +0000 Subject: Return only the least significant 8 bits of the exit status from Process::Wait on Windows (mimicing POSIX behaviour). llvm-svn: 143876 --- llvm/lib/Support/Windows/Program.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Windows') diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc index e486e6ec238..7e381684567 100644 --- a/llvm/lib/Support/Windows/Program.inc +++ b/llvm/lib/Support/Windows/Program.inc @@ -367,7 +367,7 @@ Program::Wait(const Path &path, return -2; } - return status; + return status & 0377; } bool -- cgit v1.2.3