add unsetControlCHook to remove a Ctrl-C hook after it was set (#7267)

* add unsetControlCHook to remove a Ctrl-C hook after it was set

Adds the inverse proc to setControlCHook in order to lift a Ctrl-C
hook after it has been set.

* remove check for noSignalHandler in system/excpt.nim
This commit is contained in:
Vindaar 2019-01-10 13:44:44 +01:00 • committed by Andreas Rumpf
commit 8e600b78ca
3 changed files with 10 additions and 0 deletions

View file

@ -40,6 +40,7 @@ proc reraiseException() {.compilerRtl.} =
proc writeStackTrace() = discard
proc unsetControlCHook() = discard
proc setControlCHook(hook: proc () {.noconv.}) = discard
proc closureIterSetupExc(e: ref Exception) {.compilerproc, inline.} =