Mercurial > hg > nginx-quic
comparison src/event/ngx_event.c @ 351:af4c6b45a687
nginx-0.0.4-2004-06-10-22:36:57 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 10 Jun 2004 18:36:57 +0000 |
parents | 55e496a8ece3 |
children | 694d7ddc3599 |
comparison
equal
deleted
inserted
replaced
350:7b96b7f8a6af | 351:af4c6b45a687 |
---|---|
20 #endif | 20 #endif |
21 | 21 |
22 #if (HAVE_EPOLL) | 22 #if (HAVE_EPOLL) |
23 extern ngx_module_t ngx_epoll_module; | 23 extern ngx_module_t ngx_epoll_module; |
24 extern ngx_event_module_t ngx_epoll_module_ctx; | 24 extern ngx_event_module_t ngx_epoll_module_ctx; |
25 #endif | |
26 | |
27 #if (HAVE_RTSIG) | |
28 extern ngx_module_t ngx_rtsig_module; | |
29 extern ngx_event_module_t ngx_rtsig_module_ctx; | |
25 #endif | 30 #endif |
26 | 31 |
27 #if (HAVE_AIO) | 32 #if (HAVE_AIO) |
28 #include <ngx_aio_module.h> | 33 #include <ngx_aio_module.h> |
29 #endif | 34 #endif |
641 | 646 |
642 ngx_conf_init_unsigned_value(ecf->connections, DEFAULT_CONNECTIONS); | 647 ngx_conf_init_unsigned_value(ecf->connections, DEFAULT_CONNECTIONS); |
643 ngx_conf_init_value(ecf->use, ngx_epoll_module.ctx_index); | 648 ngx_conf_init_value(ecf->use, ngx_epoll_module.ctx_index); |
644 ngx_conf_init_ptr_value(ecf->name, ngx_epoll_module_ctx.name->data); | 649 ngx_conf_init_ptr_value(ecf->name, ngx_epoll_module_ctx.name->data); |
645 | 650 |
651 #elif (HAVE_RTSIG) | |
652 | |
653 ngx_conf_init_unsigned_value(ecf->connections, DEFAULT_CONNECTIONS); | |
654 ngx_conf_init_value(ecf->use, ngx_rtsig_module.ctx_index); | |
655 ngx_conf_init_ptr_value(ecf->name, ngx_rtsig_module_ctx.name->data); | |
656 | |
646 #elif (HAVE_SELECT) | 657 #elif (HAVE_SELECT) |
647 | 658 |
648 ngx_conf_init_unsigned_value(ecf->connections, | 659 ngx_conf_init_unsigned_value(ecf->connections, |
649 FD_SETSIZE < DEFAULT_CONNECTIONS ? FD_SETSIZE : DEFAULT_CONNECTIONS); | 660 FD_SETSIZE < DEFAULT_CONNECTIONS ? FD_SETSIZE : DEFAULT_CONNECTIONS); |
650 | 661 |