diff options
| author | Ken Brown | 2012-04-13 10:50:25 -0400 |
|---|---|---|
| committer | Ken Brown | 2012-04-13 10:50:25 -0400 |
| commit | bcd86815d667681dff8eba8cd376edf2c7f045a2 (patch) | |
| tree | 8b9846b4113fc548bfa44947816a62d0050ff8b2 /src/s | |
| parent | e75e89ba4131339e952dc7628d6b29a31ad377c5 (diff) | |
| download | emacs-bcd86815d667681dff8eba8cd376edf2c7f045a2.tar.gz emacs-bcd86815d667681dff8eba8cd376edf2c7f045a2.zip | |
* src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/cygwin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 70d64a50c4e..f8c656e8ebc 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -58,7 +58,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 58 | if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ | 58 | if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ |
| 59 | fd = -1; \ | 59 | fd = -1; \ |
| 60 | sigsetmask (mask); \ | 60 | sigsetmask (mask); \ |
| 61 | emacs_close (dummy); \ | 61 | if (fd >= 0) \ |
| 62 | emacs_close (dummy); \ | ||
| 62 | } \ | 63 | } \ |
| 63 | while (0) | 64 | while (0) |
| 64 | 65 | ||