From 3324756e12e6d216e35594e908cc2f5834462d3c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 23 Feb 2014 22:09:15 -0800 Subject: [PATCH] providers/virtualbox: don't log in trap context --- plugins/providers/virtualbox/driver/base.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/driver/base.rb b/plugins/providers/virtualbox/driver/base.rb index 7a315a869..769f845e9 100644 --- a/plugins/providers/virtualbox/driver/base.rb +++ b/plugins/providers/virtualbox/driver/base.rb @@ -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