From a42b04ce7d7b0e5bb50eabd9f669df941e585451 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 25 Jul 2013 21:36:46 -0500 Subject: [PATCH] update comments in signal.go --- signal.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/signal.go b/signal.go index 22590628b..c7b4deab1 100644 --- a/signal.go +++ b/signal.go @@ -15,8 +15,12 @@ func setupSignalHandlers(env packer.Environment) { signal.Notify(ch, os.Interrupt) go func() { + // First interrupt. We mostly ignore this because it allows the + // plugins time to cleanup. <-ch - log.Println("First interrupt. Ignoring, will let plugins handle...") + log.Println("First interrupt. Ignoring, but closing stdin...") + + // Second interrupt. Go down hard. <-ch log.Println("Second interrupt. Exiting now.")