After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321053 - watching a fifo with g_io_add_watch use 100% cpu
watching a fifo with g_io_add_watch use 100% cpu
Status: RESOLVED DUPLICATE of bug 126266
Product: glib
Classification: Platform
Component: mainloop
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2005-11-09 11:46 UTC by Quentin Sculo
Modified: 2005-11-10 05:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample c code reproducing the problem (1.79 KB, text/x-csrc)
2005-11-09 11:47 UTC, Quentin Sculo
Details

Description Quentin Sculo 2005-11-09 11:46:21 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.
Comment 1 Quentin Sculo 2005-11-09 11:47:46 UTC
Created attachment 54531 [details]
sample c code reproducing the problem
Comment 2 Matthias Clasen 2005-11-10 05:43:39 UTC

*** This bug has been marked as a duplicate of 126266 ***