[mod_cgi] kill CGI if fail to write request body
(clean up potential zombie processes from unreaped children) From: Glenn Strauss <gstrauss@gluelogic.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3092 152afb58-edef-0310-8abb-c4023f1b3aa9svn/heads/lighttpd-1.4.x
parent
f2cbd0a3aa
commit
dde7bea99a
1
NEWS
1
NEWS
|
@ -22,6 +22,7 @@ NEWS
|
|||
* [mod_cgi] send 500 if CGI ends and there is no response (fixes #2542)
|
||||
* [mod_cgi] consolidate CGI cleanup code
|
||||
* [mod_cgi] simplify mod_cgi_handle_subrequest()
|
||||
* [mod_cgi] kill CGI if fail to write request body
|
||||
|
||||
- 1.4.39 - 2016-01-02
|
||||
* [core] fix memset_s call (fixes #2698)
|
||||
|
|
|
@ -1153,6 +1153,8 @@ static int cgi_create_env(server *srv, connection *con, plugin_data *p, buffer *
|
|||
/* fatal error */
|
||||
close(from_cgi_fds[0]);
|
||||
close(to_cgi_fds[1]);
|
||||
kill(pid, SIGTERM);
|
||||
cgi_pid_add(srv, p, pid);
|
||||
return -1;
|
||||
case -2:
|
||||
/* connection reset */
|
||||
|
|
Loading…
Reference in New Issue