mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-26 10:55:41 +00:00
macOS fix
This commit is contained in:
parent
06ab21e8c5
commit
50095ae22f
@ -46,11 +46,12 @@ proc start() =
|
|||||||
nimbus.state = Starting
|
nimbus.state = Starting
|
||||||
|
|
||||||
## Ctrl+C handling
|
## Ctrl+C handling
|
||||||
proc handler() {.noconv.} =
|
proc controlCHandler() {.noconv.} =
|
||||||
# workaround for https://github.com/nim-lang/Nim/issues/4057
|
when defined(windows):
|
||||||
setupForeignThreadGc()
|
# workaround for https://github.com/nim-lang/Nim/issues/4057
|
||||||
|
setupForeignThreadGc()
|
||||||
nimbus.state = Stopping
|
nimbus.state = Stopping
|
||||||
setControlCHook(handler)
|
setControlCHook(controlCHandler)
|
||||||
|
|
||||||
## logging
|
## logging
|
||||||
setLogLevel(conf.debug.logLevel)
|
setLogLevel(conf.debug.logLevel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user