On Thu, Apr 14, 2011 at 12:46 AM, Maarten Bosmans <mkbosmans at gmail.com> wrote: > return (fd >= 0) && (fcntl(fd, F_GETFL) != -1); > > For Windows, both fcntl and F_GETFL are not available. Sigh. Ok, thanks for the feedback. Attached is a new patch which keeps things as they are for Windows but fixes the problem for OS X. Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-pa_poll-Simplify-detection-of-invalid-fds-in-select-.patch Type: application/octet-stream Size: 2614 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110414/8032f0aa/attachment.obj>