diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-14 14:41:02 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-14 14:41:02 +0100 |
commit | b5c7a63a3dccf0ea7490d635ee5a8d56d3d49ce1 (patch) | |
tree | 5a20a04f481000cb2e4f4721334b1c6116c2f31d /src | |
parent | d6cf589f46c5d26281c66462aed5a793ea20fa29 (diff) | |
download | chawan-b5c7a63a3dccf0ea7490d635ee5a8d56d3d49ce1.tar.gz |
loader: only trap SIGTERM
SIGINT is trapped (well, ignored) by forkserver already.
Diffstat (limited to 'src')
-rw-r--r-- | src/loader/loader.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim index cb59a714..83212444 100644 --- a/src/loader/loader.nim +++ b/src/loader/loader.nim @@ -633,7 +633,7 @@ proc initLoaderContext(fd: cint; config: LoaderConfig): LoaderContext = let ps = newPosixStream(fd) ps.write(char(0u8)) ps.close() - onSignal SIGTERM, SIGINT: + onSignal SIGTERM: discard sig gctx.exitLoader() for dir in ctx.config.cgiDir.mitems: |