Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
534:a0266879cecf | 535:c69610198c35 |
---|---|
2975 to have tt_message_receive() called exactly once | 2975 to have tt_message_receive() called exactly once |
2976 every time the file descriptor becomes active, so | 2976 every time the file descriptor becomes active, so |
2977 the filter function forces this by returning 0. | 2977 the filter function forces this by returning 0. |
2978 Emacs must not interpret this as a closed pipe. */ | 2978 Emacs must not interpret this as a closed pipe. */ |
2979 connected_via_filedesc_p (XPROCESS (p)))) | 2979 connected_via_filedesc_p (XPROCESS (p)))) |
2980 #ifdef HAVE_PTYS | 2980 |
2981 /* On some OSs with ptys, when the process on one end of | 2981 /* On some OSs with ptys, when the process on one end of |
2982 a pty exits, the other end gets an error reading with | 2982 a pty exits, the other end gets an error reading with |
2983 errno = EIO instead of getting an EOF (0 bytes read). | 2983 errno = EIO instead of getting an EOF (0 bytes read). |
2984 Therefore, if we get an error reading and errno = | 2984 Therefore, if we get an error reading and errno = |
2985 EIO, just continue, because the child process has | 2985 EIO, just continue, because the child process has |
2986 exited and should clean itself up soon (e.g. when we | 2986 exited and should clean itself up soon (e.g. when we |
2987 get a SIGCHLD). */ | 2987 get a SIGCHLD). */ |
2988 #ifdef EIO | |
2988 || (readstatus == -1 && errno == EIO) | 2989 || (readstatus == -1 && errno == EIO) |
2989 #endif | 2990 #endif |
2991 | |
2990 ) | 2992 ) |
2991 { | 2993 { |
2992 /* Currently, we rely on SIGCHLD to indicate that the | 2994 /* Currently, we rely on SIGCHLD to indicate that the |
2993 process has terminated. Unfortunately, on some systems | 2995 process has terminated. Unfortunately, on some systems |
2994 the SIGCHLD gets missed some of the time. So we put an | 2996 the SIGCHLD gets missed some of the time. So we put an |