* image.c (x_find_image_file): Don't close a remote file handle.

This commit is contained in:
Andreas Schwab 2013-07-12 11:02:30 +02:00
parent 18331b9040
commit f6774c1ada
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-07-12 Andreas Schwab <schwab@linux-m68k.org>
* image.c (x_find_image_file): Don't close a remote file handle.
2013-07-12 Paul Eggert <eggert@cs.ucla.edu>
Fix races with threads and file descriptors.

View file

@ -2260,7 +2260,8 @@ x_find_image_file (Lisp_Object file)
else
{
file_found = ENCODE_FILE (file_found);
emacs_close (fd);
if (fd != -2)
emacs_close (fd);
}
return file_found;