comparison src/event/ngx_event.c @ 304:bcbe876f4262

nginx-0.0.3-2004-04-02-09:14:40 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 02 Apr 2004 05:14:40 +0000
parents 00c5660d2707
children 4b1a3a4acc60
comparison
equal deleted inserted replaced
303:00c5660d2707 304:bcbe876f4262
137 }; 137 };
138 138
139 139
140 static ngx_int_t ngx_event_module_init(ngx_cycle_t *cycle) 140 static ngx_int_t ngx_event_module_init(ngx_cycle_t *cycle)
141 { 141 {
142 #if !(WIN32)
142 ngx_core_conf_t *ccf; 143 ngx_core_conf_t *ccf;
143 ngx_event_conf_t *ecf; 144 ngx_event_conf_t *ecf;
144 145
145 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 146 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
146 147
161 if (ngx_accept_mutex_ptr == NULL) { 162 if (ngx_accept_mutex_ptr == NULL) {
162 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, 163 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
163 "mmap(MAP_ANON|MAP_SHARED) failed"); 164 "mmap(MAP_ANON|MAP_SHARED) failed");
164 return NGX_ERROR; 165 return NGX_ERROR;
165 } 166 }
167 #endif
166 168
167 return NGX_OK; 169 return NGX_OK;
168 } 170 }
169 171
170 172