[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r107889: * src/s/cygwin.h (PTY_OPEN):
From: |
Ken Brown |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r107889: * src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor. |
Date: |
Fri, 13 Apr 2012 10:50:25 -0400 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r107889: * src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.,
Ken Brown <=