From 4da60e6503a2b7dfb8d7c91f4be65477a5a99243 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Sat, 24 Aug 2013 12:50:49 +0200 Subject: [PATCH] packer/plugin: confirm cleanup at first signal received --- signal.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/signal.go b/signal.go index de1668dc9..b198558d7 100644 --- a/signal.go +++ b/signal.go @@ -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.")