Skip to content

Commit

Permalink
Fix hanging on long-running commands
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders committed Dec 15, 2020
1 parent 993d4a4 commit d4a2c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func init() {
}

func Execute() {
shutdown := make(chan os.Signal, 1)
shutdown = make(chan os.Signal, 1)
done = make(chan int, 1)
signal.Notify(shutdown, syscall.SIGINT, syscall.SIGTERM)
if runAsService {
Expand Down

0 comments on commit d4a2c85

Please sign in to comment.