Skip to content

Commit

Permalink
Buffer signals channel
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dwan <[email protected]>
  • Loading branch information
michaeldwan committed Jan 6, 2020
1 parent 0ead0ca commit a310cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ func (m *Machine) setupSignals() {
}

m.logger.Debugf("Setting up signal handler: %v", signals)
sigchan := make(chan os.Signal)
sigchan := make(chan os.Signal, len(signals))
signal.Notify(sigchan, signals...)

go func() {
Expand Down

0 comments on commit a310cc2

Please sign in to comment.