emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113389: * image.c (x_find_image_file): Don't close


From: Andreas Schwab
Subject: [Emacs-diffs] trunk r113389: * image.c (x_find_image_file): Don't close a remote file handle.
Date: Fri, 12 Jul 2013 09:03:35 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113389
revision-id: address@hidden
parent: address@hidden
committer: Andreas Schwab <address@hidden>
branch nick: emacs
timestamp: Fri 2013-07-12 11:02:30 +0200
message:
  * image.c (x_find_image_file): Don't close a remote file handle.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/image.c                    image.c-20091113204419-o5vbwnq5f7feedwu-2969
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-07-12 02:03:47 +0000
+++ b/src/ChangeLog     2013-07-12 09:02:30 +0000
@@ -1,3 +1,7 @@
+2013-07-12  Andreas Schwab  <address@hidden>
+
+       * image.c (x_find_image_file): Don't close a remote file handle.
+
 2013-07-12  Paul Eggert  <address@hidden>
 
        Fix races with threads and file descriptors.

=== modified file 'src/image.c'
--- a/src/image.c       2013-07-12 02:03:47 +0000
+++ b/src/image.c       2013-07-12 09:02:30 +0000
@@ -2260,7 +2260,8 @@
   else
     {
       file_found = ENCODE_FILE (file_found);
-      emacs_close (fd);
+      if (fd != -2)
+       emacs_close (fd);
     }
 
   return file_found;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]