comparison src/event/modules/ngx_select_module.c @ 381:02a511569afb

nginx-0.0.7-2004-07-07-19:01:00 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 07 Jul 2004 15:01:00 +0000
parents 5ce6561246a5
children 537de4dca8ca
comparison
equal deleted inserted replaced
380:5ce6561246a5 381:02a511569afb
13 static ngx_int_t ngx_select_init(ngx_cycle_t *cycle); 13 static ngx_int_t ngx_select_init(ngx_cycle_t *cycle);
14 static void ngx_select_done(ngx_cycle_t *cycle); 14 static void ngx_select_done(ngx_cycle_t *cycle);
15 static ngx_int_t ngx_select_add_event(ngx_event_t *ev, int event, u_int flags); 15 static ngx_int_t ngx_select_add_event(ngx_event_t *ev, int event, u_int flags);
16 static ngx_int_t ngx_select_del_event(ngx_event_t *ev, int event, u_int flags); 16 static ngx_int_t ngx_select_del_event(ngx_event_t *ev, int event, u_int flags);
17 static ngx_int_t ngx_select_process_events(ngx_cycle_t *cycle); 17 static ngx_int_t ngx_select_process_events(ngx_cycle_t *cycle);
18
19 static char *ngx_select_init_conf(ngx_cycle_t *cycle, void *conf); 18 static char *ngx_select_init_conf(ngx_cycle_t *cycle, void *conf);
20 19
21 20
22 static fd_set master_read_fd_set; 21 static fd_set master_read_fd_set;
23 static fd_set master_write_fd_set; 22 static fd_set master_write_fd_set;
603 "supported by select() is " ngx_value(FD_SETSIZE)); 602 "supported by select() is " ngx_value(FD_SETSIZE));
604 return NGX_CONF_ERROR; 603 return NGX_CONF_ERROR;
605 } 604 }
606 #endif 605 #endif
607 606
607 #if (NGX_THREADS)
608 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0,
609 "select() is not supported in the threaded mode");
610 return NGX_CONF_ERROR;
611 #else
608 return NGX_CONF_OK; 612 return NGX_CONF_OK;
613 #endif
609 } 614 }