Return only the least significant 8 bits of the exit status from

Process::Wait on Windows (mimicing POSIX behaviour).

llvm-svn: 143876
This commit is contained in:
Peter Collingbourne 2011-11-06 16:45:46 +00:00
parent 3c563109b7
commit 6ec231f82f

View File

@ -367,7 +367,7 @@ Program::Wait(const Path &path,
return -2;
}
return status;
return status & 0377;
}
bool