diff options
| author | Paul Buetow <paul@buetow.org> | 2023-11-19 11:21:54 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-11-19 11:21:54 +0200 |
| commit | c733b2dcf26a53bf56d919781fd8acbc750a5adc (patch) | |
| tree | eecba5b2e3083bb5a6368f552dfbb2c917fba14d /cmd | |
| parent | 1ec99f2476257aef733bada29bffe3e8b83f7b6b (diff) | |
pring out signal received
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gorum/main.go | 3 |
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() }() |
