[pulseaudio-tickets] [Bug 45044] New: pa_mainloop should report POLLNVAL when that occurs with IO events
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Jan 21 10:05:03 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=45044
Bug #: 45044
Summary: pa_mainloop should report POLLNVAL when that occurs
with IO events
Classification: Unclassified
Product: PulseAudio
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: core
AssignedTo: pulseaudio-bugs at lists.freedesktop.org
ReportedBy: tanuk at iki.fi
QAContact: pulseaudio-bugs at lists.freedesktop.org
CC: lennart at poettering.net
poll() may return POLLNVAL in revents, but pa_mainloop ignores that. According
to "man poll", POLLNVAL signals an "invalid request: fd not open (output
only)". I'm not sure how that should be interpreted: if we never call poll() on
an fd that we have closed ourselves, is it guaranteed that POLLNVAL will never
occur? If so, we could have an assertion for that in map_flags_from_libc(). Or
probably not: pa_mainloop can also be used by clients, and they may not be as
careful with their file descriptors.
As proposed by Arun, I think we should add PA_IO_EVENT_INVALID to
pa_io_event_flags_t.
Discussion:
http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-December/012517.html
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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 pulseaudio-bugs
mailing list