]> sigrok.org Git - libsigrok.git/commitdiff
session: Check for errors from g_poll()
authorDaniel Elstner <redacted>
Sun, 30 Aug 2015 12:23:38 +0000 (14:23 +0200)
committerDaniel Elstner <redacted>
Thu, 3 Sep 2015 17:37:09 +0000 (19:37 +0200)
If the call to g_poll() in sr_session_iteration() fails, report
the error back to the caller. Do not treat EINTR as error though.

Check for session abort only if a source callback was actually
invoked, or at least once if none of the callbacks are invoked.
Stop checking for abort if the session has already been stopped,
just in case a callback sets abort_session again.

Also change the documentation to match the actual behavior.


No differences found