add to cgi doc note about zombies

PUBLISHED_FROM=fb1796f11a595befd160bd5ab1088b6e39f16757
This commit is contained in:
Ruslan Valiullin 2017-04-15 07:31:37 +01:00 committed by Cesanta Bot
parent 8354319e72
commit 6926655513

View File

@ -29,3 +29,7 @@ Example:
```c
opts.cgi_interpreter = "C:\\ruby\\ruby.exe";
```
NOTE: In the CGI handler we don't use explicitly a system call waitpid() for
reaping zombie processes. Instead, we set the SIGCHLD handler to SIG_IGN.
It will cause zombie processes to be reaped automatically.
CAUTION: not all OSes (e.g. QNX) reap zombies if SIGCHLD is ignored.