Skip to content

Commit

Permalink
Events: made a failure to create a notification channel non-fatal.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdocguard committed May 6, 2015
1 parent 9a31e9f commit 26e32aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event/modules/ngx_epoll_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 26e32aa

Please sign in to comment.