From 1311a6137f23cd88ff55a61a9150e8a0b3efb6dd Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Sun, 10 Sep 2006 22:01:26 +0000 Subject: [PATCH] added comment on waitpid() + -HUP git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1291 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_ssi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mod_ssi.c b/src/mod_ssi.c index d1e1b258..4fdae2fc 100644 --- a/src/mod_ssi.c +++ b/src/mod_ssi.c @@ -722,6 +722,14 @@ static int process_ssi_stmt(server *srv, connection *con, plugin_data *p, close(from_exec_fds[1]); /* wait for the client to end */ + + /* + * FIXME: if we get interrupted by a SIGCHILD we count this as error + * + * for now it only happened on OpenBSD. + * + * that leads to zombies and missing output + */ if (-1 == waitpid(pid, &status, 0)) { log_error_write(srv, __FILE__, __LINE__, "ss", "waitpid failed:", strerror(errno)); } else if (WIFEXITED(status)) {