aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io/loader.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io/loader.nim b/src/io/loader.nim
index 6b989a4c..a6be3f6d 100644
--- a/src/io/loader.nim
+++ b/src/io/loader.nim
@@ -200,6 +200,7 @@ proc initLoaderContext(fd: cint, config: LoaderConfig): LoaderContext =
close(writef)
discard close(fd)
onSignal SIGTERM, SIGINT:
+ discard sig
gctx.exitLoader()
ctx.addFd(int(ctx.ssock.sock.getFd()), CURL_WAIT_POLLIN)
return ctx