Fix bug where sys::Wait could wait on wrong pid.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 27 Oct 2014 20:30:04 +0000 (20:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 27 Oct 2014 20:30:04 +0000 (20:30 +0000)
commitf6066a7fd359459256ad8d589a74e02af462c982
tree75f22f2f01f689344f15deb69e88b8840af8d7e3
parent52a6f59d41086b05b11b2ce86946a22f1dc5c5b4
Fix bug where sys::Wait could wait on wrong pid.

Setting ChildPid to -1 would cause waitpid to wait for any child process.

Patch by Daniel Reynaud!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220717 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Program.inc