Skip to content
Snippets Groups Projects
Commit 0dfc3359 authored by ale's avatar ale
Browse files

Fix usage of unbuffered channel in signal.Notify

parent bccf1b02
No related branches found
No related tags found
No related merge requests found
Pipeline #53274 passed
......@@ -76,7 +76,7 @@ func main() {
// Set up a clean shutdown function on SIGTERM that will
// cancel the controlling Context.
sigCh := make(chan os.Signal)
sigCh := make(chan os.Signal, 1)
go func() {
<-sigCh
log.Printf("terminating due to signal...")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment