comparison src/event/modules/ngx_epoll_module.c @ 6339:67422a0a8ed2 stable-1.8

Events: made a failure to create a notification channel non-fatal. This may happen if eventfd() returns ENOSYS, notably seen on CentOS 5.4. Such a failure will now just disable the notification mechanism and let the callers cope with it, instead of failing to start worker processes. If thread pools are not configured, this can safely be ignored.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 06 May 2015 17:04:00 +0300
parents 953ef81705e1
children 248aa2757332
comparison
equal deleted inserted replaced
6338:f32d073b83e1 6339:67422a0a8ed2
327 return NGX_ERROR; 327 return NGX_ERROR;
328 } 328 }
329 329
330 #if (NGX_HAVE_EVENTFD) 330 #if (NGX_HAVE_EVENTFD)
331 if (ngx_epoll_notify_init(cycle->log) != NGX_OK) { 331 if (ngx_epoll_notify_init(cycle->log) != NGX_OK) {
332 return NGX_ERROR; 332 ngx_epoll_module_ctx.actions.notify = NULL;
333 } 333 }
334 #endif 334 #endif
335 335
336 #if (NGX_HAVE_FILE_AIO) 336 #if (NGX_HAVE_FILE_AIO)
337 337