From 69266555138ceddd8ad5ba5fa8e308c67422c727 Mon Sep 17 00:00:00 2001
From: Ruslan Valiullin <r.valiullin77@gmail.com>
Date: Sat, 15 Apr 2017 07:31:37 +0100
Subject: [PATCH] add to cgi doc note about zombies

PUBLISHED_FROM=fb1796f11a595befd160bd5ab1088b6e39f16757
---
 docs/http/cgi.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/http/cgi.md b/docs/http/cgi.md
index 8e2309db5..c667fec4e 100644
--- a/docs/http/cgi.md
+++ b/docs/http/cgi.md
@@ -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.
\ No newline at end of file
-- 
GitLab