summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/gorum/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/gorum/main.go b/cmd/gorum/main.go
index 9cb74c7..1318945 100644
--- a/cmd/gorum/main.go
+++ b/cmd/gorum/main.go
@@ -41,8 +41,7 @@ func contextWithSignal() (context.Context, context.CancelFunc) {
go func() {
ch := make(chan os.Signal, 1)
signal.Notify(ch, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
- <-ch
- fmt.Println("Received shutdown signal")
+ fmt.Println("Received shutdown signal", <-ch)
cancel()
}()