Return only the least significant 8 bits of the exit status from
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 6 Nov 2011 16:45:46 +0000 (16:45 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 6 Nov 2011 16:45:46 +0000 (16:45 +0000)
Process::Wait on Windows (mimicing POSIX behaviour).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143876 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Program.inc

index e486e6e..7e38168 100644 (file)
@@ -367,7 +367,7 @@ Program::Wait(const Path &path,
     return -2;
   }
 
-  return status;
+  return status & 0377;
 }
 
 bool