about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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()