summaryrefslogtreecommitdiff
path: root/src/mod_cgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-01-22 18:29:18 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2023-01-23 02:34:03 -0500
commitf0786a7558f882c15469c78fadf746ac4c35e17f (patch)
tree221e7b49ab8092d1ee850acc8afe1ef68eac4fd1 /src/mod_cgi.c
parent98ad7f100be2d45a560946be75d9078cb639a8f9 (diff)
downloadlighttpd-git-f0786a7558f882c15469c78fadf746ac4c35e17f.tar.gz
[core] pass fdn to fdevent_sched_close,_unregister
remove issock flag; on _WIN32, select(), WSAPoll() work only on sockets
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r--src/mod_cgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c
index 52138682..3ec48bfa 100644
--- a/src/mod_cgi.c
+++ b/src/mod_cgi.c
@@ -409,8 +409,8 @@ static void cgi_connection_close_fdtocgi(handler_ctx *hctx) {
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)*/
- fdevent_sched_close(ev, hctx->fdtocgi, 0);
+ /*fdevent_unregister(ev, hctx->fdntocgi);*//*(handled below)*/
+ fdevent_sched_close(ev, hctx->fdntocgi);
hctx->fdntocgi = NULL;
hctx->fdtocgi = -1;
}
@@ -426,8 +426,8 @@ static void cgi_connection_close(handler_ctx *hctx) {
struct fdevents * const ev = hctx->ev;
/* close connection to the cgi-script */
fdevent_fdnode_event_del(ev, hctx->fdn);
- /*fdevent_unregister(ev, hctx->fd);*//*(handled below)*/
- fdevent_sched_close(ev, hctx->fd, 0);
+ /*fdevent_unregister(ev, hctx->fdn);*//*(handled below)*/
+ fdevent_sched_close(ev, hctx->fdn);
hctx->fdn = NULL;
}