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)
commit5f13d6461b2018ccbeea46203d271d590e22638c
tree26852b35b23b5cdde07f735d6e360b2ad4633e4e
parentb494e5d19893cf137a5e0576079968f1b86a8a28
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!

llvm-svn: 220717
llvm/lib/Support/Unix/Program.inc