mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-09 00:32:06 -04:00
core: use Process#wait since childprocess bug is fixed
This commit is contained in:
parent
7f534d839d
commit
5fb64dfca2
1 changed files with 1 additions and 7 deletions
|
|
@ -174,13 +174,7 @@ module Vagrant
|
|||
process = ChildProcess.build("ssh", *command_options)
|
||||
process.io.inherit!
|
||||
process.start
|
||||
|
||||
# Poll for exited rather than call #wait because #wait will hold
|
||||
# the GIL, locking up the entire Ruby VM. See ChildProcess #68
|
||||
while !process.exited?
|
||||
sleep 0.2
|
||||
end
|
||||
|
||||
process.wait
|
||||
return process.exit_code
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue