Mercurial > hg > xemacs-beta
changeset 3964:a4917b3c97cc
[xemacs-hg @ 2007-05-19 18:04:18 by vins]
Don't close file descriptors that are already closed.
author | vins |
---|---|
date | Sat, 19 May 2007 18:04:19 +0000 |
parents | d240e1ef5356 |
children | 69c43a181729 |
files | src/ChangeLog src/dumper.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat May 19 17:21:30 2007 +0000 +++ b/src/ChangeLog Sat May 19 18:04:19 2007 +0000 @@ -1,3 +1,8 @@ +2007-05-03 Vin Shelton <acs@xemacs.org> + + * dumper.c (pdump): Don't close an already-closed file + descriptor. Patch from Steve Higham. + 2007-05-17 Vin Shelton <acs@xemacs.org> * linuxplay.c (linux_play_data_or_file): Fix playing sound on
--- a/src/dumper.c Sat May 19 17:21:30 2007 +0000 +++ b/src/dumper.c Sat May 19 18:04:19 2007 +0000 @@ -2182,7 +2182,8 @@ pdump_dump_root_lisp_objects (); retry_fclose (pdump_out); - retry_close (pdump_fd); + /* pdump_fd is already closed by the preceding call to fclose. + retry_close (pdump_fd); */ free (pdump_buf);