GNOME Bugzilla – Bug 321053
watching a fifo with g_io_add_watch use 100% cpu
Last modified: 2005-11-10 05:43:39 UTC
I'm watching a fifo with g_io_add_watch, to receive commands from a 'echo command >fifo'. After the first command is received, the program still works, but the main loop poll the fifo continuously resulting in 100% cpu usage. Attached is a sample c program reproducing the problem, ported from a perl program.
Created attachment 54531 [details] sample c code reproducing the problem
*** This bug has been marked as a duplicate of 126266 ***