From faeba2a14fa9bd540de671eb0ca34a6b4e2db393 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 23 Aug 2013 14:22:32 -0700 Subject: [PATCH] packer/plugin: swallowInterrupts in plugin should swallow all --- packer/plugin/plugin.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packer/plugin/plugin.go b/packer/plugin/plugin.go index 5566fdcaf..223de9b53 100644 --- a/packer/plugin/plugin.go +++ b/packer/plugin/plugin.go @@ -94,8 +94,10 @@ func swallowInterrupts() { signal.Notify(ch, os.Interrupt) go func() { - <-ch - log.Println("Received interrupt signal. Ignoring.") + for { + <-ch + log.Println("Received interrupt signal. Ignoring.") + } }() }