[Bug 750397] CRITICAL: Race condition in GstBus

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 29 05:41:30 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=750397

--- Comment #64 from Matt Gruenke <mgruenke at tycoint.com> ---
(In reply to Sebastian Dröge (slomo) from comment #61)
> RELEASE_EVENT() can actually "fail" with EAGAIN or EINTR and should be
> retried then instead of causing a critical warning. So it might be better to
> handle those two accordingly, and only do a critical warning in other cases
> (and in any case keep the counter consistent!).

According to the manpage, Linux won't fail with EAGAIN, unless O_NONBLOCK was
set.  Regardless, I've handled this as requested (no harm in it, really, since
EINTR should be handled by retrying).  I can imagine that or read() returning 0
occurring on a Posix-like system, so it seems reasonable to handle those cases.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list