diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-17 12:58:00 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-17 13:03:26 +0100 |
commit | a224109c8933414fc7e42a1406bb491d6294eef9 (patch) | |
tree | 5d593d523042431b92fc616e0765e2aa6018c506 /src | |
parent | 981b23ec51e672df53d1f923a7f1153d7cb7e3c2 (diff) | |
download | chawan-a224109c8933414fc7e42a1406bb491d6294eef9.tar.gz |
main: ignore SIGCHLD
to avoid zombies
Diffstat (limited to 'src')
-rw-r--r-- | src/main.nim | 4 |
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() |