Merge pull request #9645 from chrisroberts/e-checkpoint-exceptions

Prevent exceptions from being raised by checkpoint
This commit is contained in:
Chris Roberts 2018-04-04 15:58:47 -07:00 committed by GitHub
commit dd438100b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ module Vagrant
if enabled && @checkpoint_thread.nil?
logger.debug("starting plugin check")
@checkpoint_thread = Thread.new do
Thread.current.abort_on_exception = false
if Thread.current.respond_to?(:report_on_exception=)
Thread.current.report_on_exception = false
end
begin
Thread.current[:result] = Checkpoint.check(
product: "vagrant",