mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-29 18:20:05 -04:00
packer/plugin: confirm cleanup at first signal received
This commit is contained in:
parent
80e36f11b9
commit
4da60e6503
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ func setupSignalHandlers(env packer.Environment) {
|
|||
<-ch
|
||||
log.Println("First interrupt. Ignoring to allow plugins to clean up.")
|
||||
|
||||
env.Ui().Error("Interrupt signal received. Cleaning up...")
|
||||
|
||||
// Second interrupt. Go down hard.
|
||||
<-ch
|
||||
log.Println("Second interrupt. Exiting now.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue