aboutsummaryrefslogtreecommitdiff
path: root/src/event/ngx_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/ngx_event.c')
-rw-r--r--src/event/ngx_event.c41
1 files changed, 13 insertions, 28 deletions
diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c
index 063385dba..84e5e29da 100644
--- a/src/event/ngx_event.c
+++ b/src/event/ngx_event.c
@@ -36,33 +36,9 @@ ngx_event_t *ngx_read_events, *ngx_write_events;
#if !(USE_KQUEUE)
-#if (HAVE_KQUEUE)
-
-#if 0
-ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT;
-#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_DEVPOLL)
-
-#if 0
-ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT;
-#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
-
-ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT;
-
-#endif
+ngx_event_type_e ngx_event_type;
-int ngx_event_flags;
+int ngx_event_flags;
ngx_event_actions_t ngx_event_actions;
@@ -97,8 +73,17 @@ void ngx_pre_thread(ngx_array_t *ls, ngx_pool_t *pool, ngx_log_t *log)
/* STUB */
int max_connections = 512;
-#if (HAVE_IOCP)
- ngx_event_type = NGX_IOCP_EVENT;
+#if 0
+ ngx_event_type = NGX_POLL_EVENT_N;
+#endif
+#if 1
+ ngx_event_type = NGX_KQUEUE_EVENT_N;
+#endif
+#if 0
+ ngx_event_type = NGX_DEVPOLL_EVENT_N;
+#endif
+#if 0
+ ngx_event_type = NGX_IOCP_EVENT_N;
#endif
if (ngx_init_events(max_connections, log) == NGX_ERROR) {