@@ -2398,26 +2398,26 @@ proc doRunBeaconNode*(config: var BeaconNodeConf, rng: ref HmacDrbgContext) {.ra
2398
2398
for node in metadata.bootstrapNodes:
2399
2399
config.bootstrapNodes.add node
2400
2400
2401
- # # Ctrl+C handling
2402
- proc controlCHandler() {.noconv.} =
2403
- when defined(windows):
2404
- # workaround for https://github.com/nim-lang/Nim/issues/4057
2405
- try :
2406
- setupForeignThreadGc()
2407
- except Exception as exc: raiseAssert exc.msg # shouldn't happen
2408
- notice " Shutting down after having received SIGINT"
2409
- bnStatus = BeaconNodeStatus.Stopping
2410
- try :
2411
- setControlCHook(controlCHandler)
2412
- except Exception as exc: # TODO Exception
2413
- warn " Cannot set ctrl-c handler" , msg = exc.msg
2414
-
2415
- # equivalent SIGTERM handler
2416
- when defined(posix):
2417
- proc SIGTERMHandler(signal: cint ) {.noconv.} =
2418
- notice " Shutting down after having received SIGTERM"
2419
- bnStatus = BeaconNodeStatus.Stopping
2420
- c_signal(ansi_c.SIGTERM, SIGTERMHandler)
2401
+ # # # Ctrl+C handling
2402
+ # proc controlCHandler() {.noconv.} =
2403
+ # when defined(windows):
2404
+ # # workaround for https://github.com/nim-lang/Nim/issues/4057
2405
+ # try:
2406
+ # setupForeignThreadGc()
2407
+ # except Exception as exc: raiseAssert exc.msg # shouldn't happen
2408
+ # notice "Shutting down after having received SIGINT"
2409
+ # bnStatus = BeaconNodeStatus.Stopping
2410
+ # try:
2411
+ # setControlCHook(controlCHandler)
2412
+ # except Exception as exc: # TODO Exception
2413
+ # warn "Cannot set ctrl-c handler", msg = exc.msg
2414
+
2415
+ # # equivalent SIGTERM handler
2416
+ # when defined(posix):
2417
+ # proc SIGTERMHandler(signal: cint) {.noconv.} =
2418
+ # notice "Shutting down after having received SIGTERM"
2419
+ # bnStatus = BeaconNodeStatus.Stopping
2420
+ # c_signal(ansi_c.SIGTERM, SIGTERMHandler)
2421
2421
2422
2422
block :
2423
2423
let res =
0 commit comments