[Boost-bugs] [Boost C++ Libraries] #7012: do_epoll_create failes with 'epoll: Function not supported".

Subject: [Boost-bugs] [Boost C++ Libraries] #7012: do_epoll_create failes with 'epoll: Function not supported".
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-21 22:24:56


#7012: do_epoll_create failes with 'epoll: Function not supported".
--------------------------------------------+-------------------------------
 Reporter: Oleg Grunin <oleg00@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
--------------------------------------------+-------------------------------
 The relevant code:
 #if defined(EPOLL_CLOEXEC)
   int fd = epoll_create1(EPOLL_CLOEXEC);
 #else // defined(EPOLL_CLOEXEC)
   int fd = -1;
   errno = EINVAL;
 #endif // defined(EPOLL_CLOEXEC)

   if (fd == -1 && errno == EINVAL)
   {
     fd = epoll_create(epoll_size);
 ....

 with glibc 2.13 EPOLL_CLOEXEC is always defined but epoll_create1 may
 return ENOSYS which causes the code below to fall though. The proposed
 patch is attached

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7012>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC