about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-17 12:58:00 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-17 13:03:26 +0100
commita224109c8933414fc7e42a1406bb491d6294eef9 (patch)
tree5d593d523042431b92fc616e0765e2aa6018c506 /src
parent981b23ec51e672df53d1f923a7f1153d7cb7e3c2 (diff)
downloadchawan-a224109c8933414fc7e42a1406bb491d6294eef9.tar.gz
main: ignore SIGCHLD
to avoid zombies
Diffstat (limited to 'src')
-rw-r--r--src/main.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.nim b/src/main.nim
index ea5a92dd..8a97a384 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -1,5 +1,9 @@
 import version
 
+when defined(posix):
+  from posix import signal, SIGCHLD, SIG_IGN
+  signal(SIGCHLD, SIG_IGN)
+
 import server/forkserver
 let forks = newForkServer()