[mod_cgi] check fd-to-cgi not -1 before close
sanity checkpersonal/stbuehler/tests-path
parent
8b10f94c07
commit
ec50657efe
|
@ -415,6 +415,7 @@ static void cgi_pid_del(plugin_data *p, cgi_pid_t *cgi_pid) {
|
|||
|
||||
static void cgi_connection_close_fdtocgi(handler_ctx *hctx) {
|
||||
/*(closes only hctx->fdtocgi)*/
|
||||
if (-1 == hctx->fdtocgi) return;
|
||||
struct fdevents * const ev = hctx->ev;
|
||||
fdevent_fdnode_event_del(ev, hctx->fdntocgi);
|
||||
/*fdevent_unregister(ev, hctx->fdtocgi);*//*(handled below)*/
|
||||
|
|
Loading…
Reference in New Issue