core: use process.alive? to avoid exceptions
This commit is contained in:
parent
e3501f2079
commit
ec35190cfc
|
@ -19,6 +19,7 @@ BUG FIXES:
|
|||
- core: Setting an ID on a provisioner now works. [GH-3424]
|
||||
- core: All synced folder paths containing symlinks are fully
|
||||
expanded before sharing. [GH-3444]
|
||||
- core: Windows no longer sees "process not started" errors rarely.
|
||||
- commands/box/repackage: Works again. [GH-3372]
|
||||
- commands/box/update: Update should check for updates from latest
|
||||
version. [GH-3452]
|
||||
|
|
|
@ -204,7 +204,7 @@ module Vagrant
|
|||
# Return an exit status container
|
||||
return Result.new(process.exit_code, io_data[:stdout], io_data[:stderr])
|
||||
ensure
|
||||
if process && !process.exited?
|
||||
if process && process.alive?
|
||||
# Make sure no matter what happens, the process exits
|
||||
process.stop(2)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue