diff options
| author | Joakim Verona | 2011-11-01 13:25:00 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-01 13:25:00 +0100 |
| commit | 5a2b3200763986b3f1bbd0a58619290e46a57893 (patch) | |
| tree | 82d2a3f76fae1c1d64261e9222def5a32d2a27d0 /src/process.c | |
| parent | 8bf21b996ee41ae3980696bd7f37d11f44d8e1cb (diff) | |
| parent | 37dcccdd20fb23eaf947fd51787da84f6f18e425 (diff) | |
| download | emacs-5a2b3200763986b3f1bbd0a58619290e46a57893.tar.gz emacs-5a2b3200763986b3f1bbd0a58619290e46a57893.zip | |
upstream
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/process.c b/src/process.c index dc37ec5f961..c316139a713 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4856,16 +4856,11 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd, | |||
| 4856 | It can't hurt. */ | 4856 | It can't hurt. */ |
| 4857 | else if (nread == -1 && errno == EIO) | 4857 | else if (nread == -1 && errno == EIO) |
| 4858 | { | 4858 | { |
| 4859 | /* Clear the descriptor now, so we only raise the | 4859 | /* Clear the descriptor now, so we only raise the signal once. */ |
| 4860 | signal once. Don't do this if `process' is only | 4860 | FD_CLR (channel, &input_wait_mask); |
| 4861 | a pty. */ | 4861 | FD_CLR (channel, &non_keyboard_wait_mask); |
| 4862 | if (XPROCESS (proc)->pid != -2) | ||
| 4863 | { | ||
| 4864 | FD_CLR (channel, &input_wait_mask); | ||
| 4865 | FD_CLR (channel, &non_keyboard_wait_mask); | ||
| 4866 | 4862 | ||
| 4867 | kill (getpid (), SIGCHLD); | 4863 | kill (getpid (), SIGCHLD); |
| 4868 | } | ||
| 4869 | } | 4864 | } |
| 4870 | #endif /* HAVE_PTYS */ | 4865 | #endif /* HAVE_PTYS */ |
| 4871 | /* If we can detect process termination, don't consider the process | 4866 | /* If we can detect process termination, don't consider the process |