diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-20 22:01:40 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-20 22:01:40 +0200 |
commit | c6ed209619a31ad4022038e990b015f7849d5a6a (patch) | |
tree | e4d73b7d5b4fb3e285075e4f8233835b5fa05bcf | |
parent | 560b0150bdb120590f6d581da5b7180bac6df52c (diff) | |
download | chawan-c6ed209619a31ad4022038e990b015f7849d5a6a.tar.gz |
forkserver: also skip SIGTERM socket unlink
rationale: see previous commit
-rw-r--r-- | src/server/forkserver.nim | 6 |
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, |