Fix FastCGI error handling

This commit is contained in:
2023-07-13 23:09:49 +02:00
parent 642286a838
commit 0f526d7b95
4 changed files with 13 additions and 5 deletions

View File

@@ -213,6 +213,8 @@ int fastcgi_close_cnx(fastcgi_cnx_t *cnx) {
sock_close(&cnx->out);
if (cnx->fd_err != -1) close(cnx->fd_err);
if (cnx->fd_out != -1) close(cnx->fd_out);
cnx->fd_err = -1;
cnx->fd_out = -1;
errno = e;
return 0;