r19305@catbus: nickm | 2008-04-10 15:34:10 -0400

Fix bug 1938754: do not warn when epoll_create() fails with ENOSYS.


svn:r706
This commit is contained in:
Nick Mathewson 2008-04-10 19:34:50 +00:00
parent 0c843507ab
commit 44ceb945a3
3 changed files with 4 additions and 2 deletions

View File

@ -63,6 +63,7 @@ Changes in current version:
o make RPC replies use application/octet-stream as mime type
o do not delete uninitialized timeout event in evdns
o Correct the documentation on buffer printf functions.
o Don't warn on unimplemented epoll_create(): this isn't a problem, just a reason to fall back to poll or select.
Changes in 1.4.0:

View File

@ -381,7 +381,7 @@ if test x$enable_gcc_warnings = xyes; then
#error
#endif]), have_gcc42=yes, have_gcc42=no)
CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
CFLAGS="$CFLAGS -Wno-unused-parameter -Wno-sign-compare -Wstrict-aliasing"
if test x$have_gcc4 = xyes ; then

View File

@ -120,7 +120,8 @@ epoll_init(struct event_base *base)
/* Initalize the kernel queue */
if ((epfd = epoll_create(nfiles)) == -1) {
event_warn("epoll_create");
if (errno != ENOSYS)
event_warn("epoll_create");
return (NULL);
}