about summary refs log tree commit diff stats
path: root/src/loader/loader.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-23 18:07:23 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-23 18:08:14 +0200
commit8e8c7f0911f4a20446a83090d722fecaf203f6f3 (patch)
tree334a897643051bc6e16d564591ddecba22af565d /src/loader/loader.nim
parent3b3d517130bb42ec69e6f684510e3b3a3668947c (diff)
downloadchawan-8e8c7f0911f4a20446a83090d722fecaf203f6f3.tar.gz
client, forkserver, dynstream: misc refactorings, fixes
* fix broken int conversion in dynstream
* fix EPIPE handling in forkserver
* merge fdmap and connectingContainers into loader map
Diffstat (limited to 'src/loader/loader.nim')
-rw-r--r--src/loader/loader.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim
index b5a6b3ba..85490b84 100644
--- a/src/loader/loader.nim
+++ b/src/loader/loader.nim
@@ -694,6 +694,8 @@ proc loadCGI(ctx: LoaderContext; client: ClientData; handle: InputHandle;
     # expects SIGCHLD to be untouched. (e.g. git dies a horrible death with
     # SIGCHLD as SIG_IGN)
     signal(SIGCHLD, SIG_DFL)
+    # let's also reset SIGPIPE, which we ignored in forkserver
+    signal(SIGPIPE, SIG_DFL)
     # close the parent handles
     for i in 0 ..< ctx.handleMap.len:
       if ctx.handleMap[i] != nil: