diff options
author | Ruslan Ermilov <ru@nginx.com> | 2015-05-06 17:04:00 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2015-05-06 17:04:00 +0300 |
commit | 26e32aaa9c023dbfae46dfee5e2b26001f6fda44 (patch) | |
tree | 33fef1d7600a196e106e2beb143c5476468a9df4 | |
parent | 9a31e9faab61ed6c01b81f45639f4ec1315caa85 (diff) | |
download | nginx-26e32aaa9c023dbfae46dfee5e2b26001f6fda44.tar.gz |
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.
-rw-r--r-- | src/event/modules/ngx_epoll_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/modules/ngx_epoll_module.c b/src/event/modules/ngx_epoll_module.c index 3458b209a..d7f915de9 100644 --- a/src/event/modules/ngx_epoll_module.c +++ b/src/event/modules/ngx_epoll_module.c @@ -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 |