Merge pull request #338 from mitchellh/signal-confirm

main: confirm cleanup at first signal received
pull/343/head
Mitchell Hashimoto 13 years ago
commit 32f1092608

@ -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…
Cancel
Save