[sane-devel] Use poll() instead of select() in backends
nils at tiptoe.de
Mon Sep 1 10:13:33 UTC 2014
On Fri, 2014-08-29 at 08:10 -0400, m. allan noah wrote:
> Given that poll() is reported to be flaky on certain versions of OSX,
> we need to at least keep select() as an option.
Do I understand this correctly that we'd somehow need to distinguish
- systems where poll() is available and working
- systems where poll() is available but doesn't do the right thing under
certain circumstances (what are these (*)?)
- systems where poll() is unavailable
(*): I've heard about grief with poll() on OS/X 10.4 but that's long out
of support, and that poll() on current OS/X wouldn't trigger on events
with zero-sized data. Do we care about that latter case, or are there
additional ways poll() on OS/X can fail/not do what we want/expect?
Nils Philippsen / Wilhelmstraße 22 / D-71229 Leonberg
nils at tiptoe.de / nils at redhat.com
PGP fingerprint: C4A8 9474 5C4C ADE3 2B8F 656D 47D8 9B65 6951 3011
Ever noticed that common sense isn't really all that common?
More information about the sane-devel