show a message on Ctrl+C

This commit is contained in:
Ștefan Talpalaru 2019-07-20 01:40:31 +02:00
parent 1a3a29c419
commit 356a7cad84
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 0 deletions

View File

@ -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