]> sigrok.org Git - libsigrok.git/commitdiff
session: Do not expect meaningful errno on non-UNIX
authorDaniel Elstner <redacted>
Sun, 30 Aug 2015 13:25:33 +0000 (15:25 +0200)
committerDaniel Elstner <redacted>
Thu, 3 Sep 2015 17:37:09 +0000 (19:37 +0200)
Looking at the g_poll() implementations for various systems, it
appears that on Windows the return value is 0 if the wait was
interrupted, and errno is never set. Also, the MacOS X wrapper
around select() does not clear revents on timeout.

To deal with these issues, check for EINTR only on Unices, and
assume revents to be invalid unless g_poll() returned a positive
value.


No differences found