Close SSH channel after exit status received [GH-603]

This commit is contained in:
Mitchell Hashimoto 2013-07-12 06:40:03 +09:00
parent 71ec8cf9bf
commit 81550392b0
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,8 @@ BUG FIXES:
works properly. [GH-785]
- NFS shared folders properly dereference symlinks so that the real path
is used, avoiding mount errors [GH-1101]
- SSH channel is closed after the exit status is received, potentially
eliminating any SSH hangs. [GH-603]
## 1.2.3 (July 9, 2013)

View File

@ -282,6 +282,10 @@ module VagrantPlugins
ch2.on_request("exit-status") do |ch3, data|
exit_status = data.read_long
@logger.debug("Exit status: #{exit_status}")
# Close the channel, since after the exit status we're
# probably done. This fixes up issues with hanging.
channel.close
end
# Set the terminal