Bug:CLR_FD_BIT is undefined

This commit is contained in:
Hawker 2021-01-04 15:02:20 +08:00 committed by fengbojiang
parent 06c3e57024
commit b2b09b1a1e
1 changed files with 0 additions and 8 deletions

View File

@ -320,22 +320,14 @@ ngx_select_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
found = 0;
if (ev->write) {
#if (NGX_HAVE_FSTACK)
if (FD_ISSET(CLR_FD_BIT(c->fd), &work_write_fd_set)) {
#else
if (FD_ISSET(c->fd, &work_write_fd_set)) {
#endif
found = 1;
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
"select write %d", c->fd);
}
} else {
#if (NGX_HAVE_FSTACK)
if (FD_ISSET(CLR_FD_BIT(c->fd), &work_read_fd_set)) {
#else
if (FD_ISSET(c->fd, &work_read_fd_set)) {
#endif
found = 1;
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
"select read %d", c->fd);