providers/virtualbox: don't log in trap context

This commit is contained in:
Mitchell Hashimoto 2014-02-23 22:09:15 -08:00
parent 698e892eac
commit 3324756e12
1 changed files with 4 additions and 1 deletions

View File

@ -354,7 +354,10 @@ module VagrantPlugins
def raw(*command, &block)
int_callback = lambda do
@interrupted = true
@logger.info("Interrupted.")
# We have to execute this in a thread due to trap contexts
# and locks.
Thread.new { @logger.info("Interrupted.") }.join
end
# Append in the options for subprocess