diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-12-24 17:30:59 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-24 17:30:59 +0000 |
| commit | 3a17f2483690412134e548a1a961e1424f958c01 (patch) | |
| tree | 48b1b8efe8887453284d6fa60c056a9626ba1bbf /src/event/ngx_event.c | |
| parent | 0d2bda53741ae243cca12364ccb662fd6b7b0d81 (diff) | |
| download | nginx-3a17f2483690412134e548a1a961e1424f958c01.tar.gz nginx-3a17f2483690412134e548a1a961e1424f958c01.tar.bz2 | |
nginx-0.0.1-2002-12-24-20:30:59 import
Diffstat (limited to '')
| -rw-r--r-- | src/event/ngx_event.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c index 206fc14da..cef4aecf2 100644 --- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -15,6 +15,9 @@ #if (HAVE_POLL) #include <ngx_poll_module.h> #endif +#if (HAVE_DEVPOLL) +#include <ngx_devpoll_module.h> +#endif #if (HAVE_KQUEUE) #include <ngx_kqueue_module.h> #endif @@ -29,18 +32,20 @@ ngx_event_t *ngx_read_events, *ngx_write_events; #if 0 ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; -#elif 1 +#elif 0 ngx_event_type_e ngx_event_type = NGX_POLL_EVENT; #else ngx_event_type_e ngx_event_type = NGX_KQUEUE_EVENT; #endif -#elif (HAVE_POLL) +#elif (HAVE_DEVPOLL) #if 0 ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; -#else +#elif 0 ngx_event_type_e ngx_event_type = NGX_POLL_EVENT; +#else +ngx_event_type_e ngx_event_type = NGX_DEVPOLL_EVENT; #endif #else @@ -57,6 +62,9 @@ static int (*ngx_event_init[]) (int max_connections, ngx_log_t *log) = { #if (HAVE_POLL) ngx_poll_init, #endif +#if (HAVE_DEVPOLL) + ngx_devpoll_init, +#endif #if (HAVE_KQUEUE) ngx_kqueue_init #endif |
