about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-20 22:01:40 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-20 22:01:40 +0200
commitc6ed209619a31ad4022038e990b015f7849d5a6a (patch)
treee4d73b7d5b4fb3e285075e4f8233835b5fa05bcf
parent560b0150bdb120590f6d581da5b7180bac6df52c (diff)
downloadchawan-c6ed209619a31ad4022038e990b015f7849d5a6a.tar.gz
forkserver: also skip SIGTERM socket unlink
rationale: see previous commit
-rw-r--r--src/server/forkserver.nim6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/server/forkserver.nim b/src/server/forkserver.nim
index 51c6a268..86005fbb 100644
--- a/src/server/forkserver.nim
+++ b/src/server/forkserver.nim
@@ -167,11 +167,7 @@ proc forkBuffer(ctx: var ForkServerContext; r: var BufferedReader): int =
     onSignal SIGTERM:
       discard sig
       gpstream.sclose()
-      when defined(linux):
-        # no unlink access on Linux
-        gssock.close(unlink = false)
-      else:
-        gssock.close()
+      gssock.close(unlink = false)
     enterBufferSandbox(sockDir)
     let loader = FileLoader(
       process: loaderPid,