Skip to content

Commit

Permalink
fix misuse of unbuffered os.Signal channel as argument to signal.Notify
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Dec 9, 2023
1 parent 71f9bfc commit fc23358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dmsgweb/commands/dmsgweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var RootCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Version: buildinfo.Version(),
Run: func(cmd *cobra.Command, _ []string) {
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM) //nolint
go func() {
<-c
Expand Down

0 comments on commit fc23358

Please sign in to comment.