Skip to content

Commit

Permalink
main: buffer signal channel as per linter suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Jan 2, 2022
1 parent afd3863 commit 49577ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/jlog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func main() {
PriorityFields: out.PriorityFields,
}

sigCh := make(chan os.Signal)
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, os.Interrupt, syscall.SIGPIPE)
var nSignals int32
go func() {
Expand Down

0 comments on commit 49577ce

Please sign in to comment.