]> code.delx.au - pulseaudio/commit
core: Transparently handle non-blocking sockets on Windows
authorThomas Martitz <kugel@rockbox.org>
Mon, 20 Aug 2012 21:50:37 +0000 (23:50 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 23 Oct 2012 06:42:02 +0000 (12:12 +0530)
commitc327850d9e4479a0572b7baaf8dafd737586e5a1
treeb292fbae65edbfe86d3887aebd680fb1b878f360
parentc1637652eaf3682dc2b5aa8c87b45552a8e1cf67
core: Transparently handle non-blocking sockets on Windows

On Windows, fdsem.c:flush() fails because sockets are set to non-blocking
mode, since pa_read() returns -1 (and errno == EWOULDBLOCK). I guess pa_read()
is expected to block in this case so make it actually block by calling poll().
src/pulsecore/core-util.c