mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 09:40:17 -04:00
update comments in signal.go
This commit is contained in:
parent
9289df6d35
commit
a42b04ce7d
1 changed files with 5 additions and 1 deletions
|
|
@ -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.")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue