diff options
author | Daniel Mack <zonque@gmail.com> | 2011-04-13 19:51:49 +0200 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-04-18 10:31:51 +0200 |
commit | a44092d39de9a0abb4f3e3eaede219efe67e3964 (patch) | |
tree | 2cb640b2cfaf75650fae7dac0fcc1939f9a0c114 /src/modules/x11/module-x11-publish.c | |
parent | a2581e6688c3fdcde4734f52a6b5fbc489f782b3 (diff) |
pa_poll(): Simplify detection of invalid fds in select() emulation mode
For systems which have a fcntl() implementation, we can simplify the
code which determines whether a file selector is valid in pa_poll().
The old code, which is harder to read and more expensive, stays around
for all platforms we need to emulate poll() for using select(), and
which don't provide fcntl(). IOW, for Windows.
On Mac OS X, however, the detection for bad fds via more select() calls
doesn't work, resulting in hung main loops, so the patch fixes a real
bug there.
Diffstat (limited to 'src/modules/x11/module-x11-publish.c')
0 files changed, 0 insertions, 0 deletions