Commit 09f01d44 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #338 from mitchellh/signal-confirm

main: confirm cleanup at first signal received
parents a02282ef 4da60e65
......@@ -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.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment