about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-22 17:16:51 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-22 17:16:51 +0200
commit7de2ce6917969dbb8f42126fbe4c397912762957 (patch)
tree1d9c6ff05d89ff077847f7c80f2695c364c99a78 /src
parentaa3e08c3ea432b8d9a9558c1609ebae1ab75cc1e (diff)
downloadchawan-7de2ce6917969dbb8f42126fbe4c397912762957.tar.gz
forkserver: add missing exitnow
Diffstat (limited to 'src')
-rw-r--r--src/server/forkserver.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/forkserver.nim b/src/server/forkserver.nim
index 86005fbb..de81bace 100644
--- a/src/server/forkserver.nim
+++ b/src/server/forkserver.nim
@@ -168,6 +168,7 @@ proc forkBuffer(ctx: var ForkServerContext; r: var BufferedReader): int =
       discard sig
       gpstream.sclose()
       gssock.close(unlink = false)
+      exitnow(1)
     enterBufferSandbox(sockDir)
     let loader = FileLoader(
       process: loaderPid,