mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-26 10:55:41 +00:00
show a message on Ctrl+C
This commit is contained in:
parent
1a3a29c419
commit
356a7cad84
@ -51,6 +51,7 @@ proc start() =
|
||||
# workaround for https://github.com/nim-lang/Nim/issues/4057
|
||||
setupForeignThreadGc()
|
||||
nimbus.state = Stopping
|
||||
echo "\nCtrl+C pressed. Waiting for a graceful shutdown."
|
||||
setControlCHook(controlCHandler)
|
||||
|
||||
## logging
|
||||
|
Loading…
x
Reference in New Issue
Block a user