GNOME Bugzilla – Bug 536990
updateiconcache.c: 'close ()' is redundant.
Last modified: 2008-06-07 04:20:57 UTC
Please describe the problem: Please see the manpage of fdopen. I quote an important part. > The file descriptor is not dup'ed, and will be closed when the stream created by fdopen() is closed. Steps to reproduce: 1. compile updateiconcache.c 2. run gtk-update-icon-cache Actual results: The file descriptor which was already closed will be closed doubly. The program may be hung up. Expected results: delete 'close ()'. Does this happen every time? Revision 20167 or later. GTK+-2.12.10 Other information:
Thanks, fixed in trunk and gtk-2-12: 2008-06-07 Tor Lillqvist <tml@novell.com> Bug 536990 - updateiconcache.c: 'close ()' is redundant * gtk/updateiconcache.c (build_cache): Drop redundant close() calls. fclose() on a fdopen()ed strema closes the underlying file descriptor.