Fix double close of file descriptor on error. (#82139, Wayne Schuller)
authorOwen Taylor <otaylor@redhat.com>
Mon, 20 May 2002 19:36:58 +0000 (19:36 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 20 May 2002 19:36:58 +0000 (19:36 +0000)
commit81ad1bb215d718b16e7e68ac0d95e078e766234e
treed2bdc29d3893544e8bb2fa72095ab581bb106ed9
parent60f59976d909a2d77a47ef09140ffcdac2187d92
Fix double close of file descriptor on error. (#82139, Wayne Schuller)

Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c (get_contents_regfile): Fix double
        close of file descriptor on error. (#82139, Wayne Schuller)

        * glib/gspawn.c (close_and_invalidate): Don't close
        fd's that have already been closed. (Fix from Michael
        Meeks, #81959)

        * glib/giochannel.c (g_io_channel_close): If not flushing,
        dump the contents of the write buffers, so we won't try
        to write them to an invalid fd later. (Patch from Ron Steinke,
        fixing #78290, Andreas Persenius.)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gfileutils.c
glib/giochannel.c
glib/gspawn.c