]> git.kaiwu.me - nginx.git/commitdiff
Events: made a failure to create a notification channel non-fatal.
authorRuslan Ermilov <ru@nginx.com>
Wed, 6 May 2015 14:04:00 +0000 (17:04 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 6 May 2015 14:04:00 +0000 (17:04 +0300)
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.

src/event/modules/ngx_epoll_module.c

index 3458b209ae7aeffbace3ef77947ecf28d37bb160..d7f915de9cd5958dc20634a57e0cf0da863d4213 100644 (file)
@@ -329,7 +329,7 @@ ngx_epoll_init(ngx_cycle_t *cycle, ngx_msec_t timer)
 
 #if (NGX_HAVE_EVENTFD)
         if (ngx_epoll_notify_init(cycle->log) != NGX_OK) {
-            return NGX_ERROR;
+            ngx_epoll_module_ctx.actions.notify = NULL;
         }
 #endif