Hi Holger,
On Mon, Mar 06, 2017 at 10:08:57PM +0100, Holger Freyther wrote:
glib/gmain.c:g_main_context_query
/* In direct contradiction to the Unix98 spec, IRIX runs into
* difficulty if you pass in POLLERR, POLLHUP or POLLNVAL
* flags in the events field of the pollfd while it should
* just ignoring them. So we mask them out here.
*/
events = pollrec->fd->events & ~(G_IO_ERR|G_IO_HUP|G_IO_NVAL);
I think we should try to get this fixed in upstream. If there's an IRIX
work-around, then it shuold be a compile-time decision and only enabled
on IRIX, right?
It won't help the problem in the short term, as fixed/updated glib would
first have to dissipate through their next release, get picked up by
distributions, etc. - but sooner or later somebody else will run into
the same trap, with glib disabling POLERR on Linux and thus destroying
quite a bit of capability the operating system offers.
--
- Harald Welte <laforge(a)gnumonks.org>
http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)