diff options
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 35e666baf..19b068b60 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -2630,10 +2630,10 @@ proc utimes*(path: cstring, times: ptr array [2, Timeval]): int {. proc handle_signal(sig: cint, handler: proc (a: cint) {.noconv.}) {.importc: "signal", header: "<signal.h>".} -template onSignal*(signals: varargs[cint], body: stmt): stmt {.immediate.} = +template onSignal*(signals: varargs[cint], body: untyped): stmt = ## Setup code to be executed when Unix signals are received. Example: ## from posix import SIGINT, SIGTERM - ## onSignal([SIGINT, SIGTERM]): + ## onSignal(SIGINT, SIGTERM): ## echo "bye" for s in signals: |