aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-07 11:58:39 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-07 11:58:39 +0200
commit4b666a2222bc02297c362bede2be7bb7120648f1 (patch)
tree3717b1419495a24e081037e2c12ebb374b5d8e15 /src
parent3b33779e013b4720a08ceba92bef50b9e0408903 (diff)
downloadchawan-4b666a2222bc02297c362bede2be7bb7120648f1.tar.gz
loader: get rid of xdeclaredbutnotused warning
sig is injected into the template body, but then never used, so we discard it.
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