]> git.kaiwu.me - nginx.git/commit
Events: use eventfd() instead of syscall(SYS_eventfd) if possible.
authorRuslan Ermilov <ru@nginx.com>
Fri, 23 May 2014 12:37:05 +0000 (16:37 +0400)
committerRuslan Ermilov <ru@nginx.com>
Fri, 23 May 2014 12:37:05 +0000 (16:37 +0400)
commit5c170306718a8fe5f606f7bdd2d492a54c1cf0ce
tree0d7c14c86d7186f9dc5779a04ae8a532d9295883
parent3e279a8eb492ff903ccc46cf03bbd95a30a7dcf1
Events: use eventfd() instead of syscall(SYS_eventfd) if possible.

This fixes --with-file-aio support on systems that lack eventfd()
syscall, notably aarch64 Linux.

The syscall(SYS_eventfd) may still be necessary on systems that
have eventfd() syscall in the kernel but lack it in glibc, e.g.
as seen in the current CentOS 5 release.
auto/unix
src/event/modules/ngx_epoll_module.c
src/os/unix/ngx_linux_config.h