SIGINT twice exists immediately [closes GH-118]

This commit is contained in:
Mitchell Hashimoto 2010-07-22 21:10:38 -07:00
parent 9a81a1f49a
commit 07586c1725
1 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,11 @@ module Vagrant
# interrupted if a SIGINT occurs, and exiting cleanly once the # interrupted if a SIGINT occurs, and exiting cleanly once the
# chain has been run. # chain has been run.
int_callback = lambda do int_callback = lambda do
if action_environment.interrupted?
env.logger.info "Exiting immediately!"
abort
end
env.logger.info "Waiting for cleanup before exiting..." env.logger.info "Waiting for cleanup before exiting..."
action_environment.error!(:interrupt) action_environment.error!(:interrupt)
end end