summaryrefslogtreecommitdiff
path: root/src/mod_vhostdb_api.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-04-28 00:03:02 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2023-05-03 23:11:35 -0400
commit99f03a2bce23f55b49d85cd7fc1acbaee3dd22c7 (patch)
treeab520258b516096a0a2fff85efc0d3e9ba26a50f /src/mod_vhostdb_api.c
parent7381c119ed11f36260fe724b0dda907c56bf3108 (diff)
downloadlighttpd-git-99f03a2bce23f55b49d85cd7fc1acbaee3dd22c7.tar.gz
[core] always decr fd count upon socket close()
always decr fd count in connection_close() always decr fd count in fdevent_sched_run() Error return value from close() should be used for diagnostics and recovery, but the state of the file descriptor is unspecified by POSIX. On most systems, it is invalid to redo close(). (Linux 'man 2 close' suggests that HP-UX is an outlier, and that a future POSIX standard update will specify the behavior for the file descriptor to be closed) EBADF should not happen in those funcs for lighttpd since those should be the only locations in lighttpd where those fds are closed.
Diffstat (limited to 'src/mod_vhostdb_api.c')
0 files changed, 0 insertions, 0 deletions