GNOME Bugzilla – Bug 388776
2.12.5 BROKEN_POLL misdetection leads to GIOChannel brokenness
Last modified: 2006-12-22 23:23:30 UTC
Please describe the problem: In glib 2.12.5, the BROKEN_POLL gets set, which causes closed fds to never get G_IO_HUP, instead getting G_IO_IN with a 0-byte read forever. (2.12.4 doesn't test for this.) Steps to reproduce: 1. Run attached program on 2.12.5 2. See lack of G_IO_HUP Actual results: read_status saw G_IO_IN -- reading read size: 6 read_status saw G_IO_IN -- reading read size: 0 read_status saw G_IO_IN -- reading read size: 0 ... Expected results: read_status saw G_IO_IN -- reading read size: 6 read_status saw G_IO_HUP -- quitting Does this happen every time? Yes Other information:
Created attachment 78818 [details] example program, exhibiting the behavior Test case attached.
Gah, duplicate of 387260. http://cvs.gnome.org/viewcvs/glib/configure.in?r1=1.533&r2=1.534 *** This bug has been marked as a duplicate of 387260 ***