Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Use buffered channel for signal.Notify
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Apr 13, 2022
1 parent c9b2ca0 commit 578b5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func printError(e error) {
func main() {
flag.Parse()
if *flgIgnoreSigPipe {
ch := make(chan os.Signal)
ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGPIPE)
}

Expand Down

0 comments on commit 578b5b1

Please sign in to comment.