Skip to content

Commit df28407

Browse files
authored
Merge pull request mislav#2656 from cuonglm/master
github: fix unbuffered channel passed to signal.Notify
2 parents 4b7f6a4 + 7e3e213 commit df28407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func getPassword() (string, error) {
198198
return "", err
199199
}
200200

201-
c := make(chan os.Signal)
201+
c := make(chan os.Signal, 1)
202202
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
203203
go func() {
204204
s := <-c

0 commit comments

Comments
 (0)