Commit f39be0e3 authored by Orne Brocaar's avatar Orne Brocaar
Browse files

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

parent 3d24b808
......@@ -86,7 +86,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