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
|
# workaround for https://github.com/nim-lang/Nim/issues/4057
|
||||||
setupForeignThreadGc()
|
setupForeignThreadGc()
|
||||||
nimbus.state = Stopping
|
nimbus.state = Stopping
|
||||||
|
echo "\nCtrl+C pressed. Waiting for a graceful shutdown."
|
||||||
setControlCHook(controlCHandler)
|
setControlCHook(controlCHandler)
|
||||||
|
|
||||||
## logging
|
## logging
|
||||||
|
|
Loading…
Reference in New Issue