[vlendec at samba.org: [SCM] Samba Shared Repository - branch master updated]

tridge at samba.org tridge at samba.org
Mon Feb 28 17:34:51 MST 2011

Hi Metze,

 > I hope to get some time in the next days to think about a more generic
 > fallback from epoll to poll in the standard backend.

We could also drop the fallback, and just have the epoll(), poll() and
select() backends as separate backends, defaulting at to epoll() first
if available, then poll() then select().

epoll() is no longer an unusual call, at least on Linux. If the system
has epoll() then expecting it to work is not unreasonable these
days. If there are other systems that have epoll() but it returns
-ENOSYS, then we could detect that at startup and auto-switch to the
next backend.

I also think that some of the issues we had with epoll() in the early
days were probably related to the unusual fork() behaviour. I think
we've got that all sorted out now (with the addition of the pid checks
in the standard and epoll backends).

Cheers, Tridge

More information about the samba-technical mailing list