Mercurial > hg > xemacs-beta
diff src/event-stream.c @ 535:c69610198c35
[xemacs-hg @ 2001-05-14 04:52:02 by martinb]
Eliminate the need to define HAVE_PTYS in s&m files.
author | martinb |
---|---|
date | Mon, 14 May 2001 04:52:49 +0000 |
parents | 8a4db099aa97 |
children | 183866b06e0b |
line wrap: on
line diff
--- a/src/event-stream.c Mon May 14 04:16:19 2001 +0000 +++ b/src/event-stream.c Mon May 14 04:52:49 2001 +0000 @@ -2977,7 +2977,7 @@ the filter function forces this by returning 0. Emacs must not interpret this as a closed pipe. */ connected_via_filedesc_p (XPROCESS (p)))) -#ifdef HAVE_PTYS + /* On some OSs with ptys, when the process on one end of a pty exits, the other end gets an error reading with errno = EIO instead of getting an EOF (0 bytes read). @@ -2985,8 +2985,10 @@ EIO, just continue, because the child process has exited and should clean itself up soon (e.g. when we get a SIGCHLD). */ +#ifdef EIO || (readstatus == -1 && errno == EIO) #endif + ) { /* Currently, we rely on SIGCHLD to indicate that the