packer/plugin: confirm cleanup at first signal received

This commit is contained in:
Jack Pearkes
2013-08-24 12:55:25 +02:00
parent 80e36f11b9
commit 4da60e6503
+2
View File
@@ -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.")