Handle continuous G_IO_IN-s without any data
Some versions of GLib under Linux continuously generate G_IO_IN-s without any data to read when using recusrive channel watch sources, causing 100% CPU load. This patch detects such a situation, and automatically switches the affected source from channel watch to 50ms timeout.
Showing
Please
register
or
sign in
to comment