[PATCH] pa_poll(): Simplify detectin of invalid fds in select() emulation mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux