Commit 4c209ed3 authored by Orne Brocaar's avatar Orne Brocaar
Browse files

Fix 'misuse of unbuffered os.Signal channel ...' error.

parent 931d5d95
......@@ -52,7 +52,7 @@ func run(cmd *cobra.Command, args []string) error {
}
}
sigChan := make(chan os.Signal)
sigChan := make(chan os.Signal, 1)
exitChan := make(chan struct{})
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
log.WithField("signal", <-sigChan).Info("signal received")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment