mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 02:10:31 -05:00
packer/plugin: swallowInterrupts in plugin should swallow all
This commit is contained in:
parent
36b97b820f
commit
faeba2a14f
1 changed files with 4 additions and 2 deletions
|
|
@ -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.")
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue