go-shrt

Shortlinks and go-get redirects
git clone git://git.danielmoch.com/go-shrt.git
Log | Files | Refs | README | LICENSE

commit 3ecf11f59da4e980e6072bda5814760faf1ac04e
parent 4c260afe18a3e931b9f718d0cca68d20c1dedac4
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue, 28 Dec 2021 05:18:46 -0500

main: Pass buffered chan to signal.Notify

Diffstat:
Mcmd/shrt/main.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/shrt/main.go b/cmd/shrt/main.go @@ -193,7 +193,7 @@ func doInit(path string) { } func hangup(dbpath string) { - hup := make(chan os.Signal) + hup := make(chan os.Signal, 1) signal.Notify(hup, syscall.SIGHUP) for { <-hup