emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r107889: * src/s/cygwin.h (PTY_OPE


From: Ken Brown
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r107889: * src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.
Date: Fri, 02 Nov 2012 02:23:44 -0000
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 107889
committer: Ken Brown <address@hidden>
branch nick: trunk
timestamp: Fri 2012-04-13 10:50:25 -0400
message:
  * src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.
modified:
  src/ChangeLog
  src/s/cygwin.h
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-04-13 06:20:39 +0000
+++ b/src/ChangeLog     2012-04-13 14:50:25 +0000
@@ -1,3 +1,7 @@
+2012-04-13  Ken Brown  <address@hidden>
+
+       * s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.
+
 2012-04-13  Reuben Thomas  <address@hidden>
 
        * indent.c (Fmove_to_column): Change interactive spec (Bug#739).

=== modified file 'src/s/cygwin.h'
--- a/src/s/cygwin.h    2012-04-11 11:43:55 +0000
+++ b/src/s/cygwin.h    2012-04-13 14:50:25 +0000
@@ -58,7 +58,8 @@
       if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
        fd = -1;                                        \
       sigsetmask (mask);                               \
-      emacs_close (dummy);                             \
+      if (fd >= 0)                                     \
+       emacs_close (dummy);                            \
     }                                                  \
   while (0)
 


reply via email to

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