[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 0815082 1/8: ; Minor cleanup of wait_reading_proces
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 0815082 1/8: ; Minor cleanup of wait_reading_process_output |
Date: |
Mon, 06 Jul 2015 02:21:54 +0000 |
branch: master
commit 08150826ae9e2e909d1f5aae8d4bdb4cd205b437
Author: Ian Kelling <address@hidden>
Commit: Paul Eggert <address@hidden>
; Minor cleanup of wait_reading_process_output
* src/process.c (wait_reading_process_output):
Simplify logic. Fix DOS version comments (Bug#20978).
---
src/process.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/process.c b/src/process.c
index 70c9076..9442a9d 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4873,8 +4873,7 @@ wait_reading_process_output (intmax_t time_limit, int
nsecs, int read_kbd,
no_avail = 1;
FD_ZERO (&Available);
}
-
- if (!no_avail)
+ else
{
#ifdef ADAPTIVE_READ_BUFFERING
@@ -6965,9 +6964,7 @@ extern int sys_select (int, fd_set *, fd_set *, fd_set *,
DO_DISPLAY means redisplay should be done to show subprocess
output that arrives.
- Return positive if we received input from WAIT_PROC (or from any
- process if WAIT_PROC is null), zero if we attempted to receive
- input but got none, and negative if we didn't even try. */
+ Return -1 signifying we got no output and did not try. */
int
wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
- [Emacs-diffs] master updated (904be87 -> ad236260), Paul Eggert, 2015/07/05
- [Emacs-diffs] master 0815082 1/8: ; Minor cleanup of wait_reading_process_output,
Paul Eggert <=
- [Emacs-diffs] master 91cbc7b 4/8: ; Rename local var nsecs to adaptive_nsecs, Paul Eggert, 2015/07/05
- [Emacs-diffs] master f469c17 7/8: Avoid returning early reading process output due to SIGIO, Paul Eggert, 2015/07/05
- [Emacs-diffs] master 082eda1 3/8: ; Rename local var to match function name, Paul Eggert, 2015/07/05
- [Emacs-diffs] master ad236260 8/8: Avoid duplicate calls to current_timespec, Paul Eggert, 2015/07/05
- [Emacs-diffs] master 12a2691 6/8: Don't return as fast reading any process output, Paul Eggert, 2015/07/05
- [Emacs-diffs] master 6e2fcc2 5/8: Refactor timeouts in wait_reading_process_output, Paul Eggert, 2015/07/05
- [Emacs-diffs] master 5dc66db 2/8: Remove ADAPTIVE_READ_BUFFERING ifdef, Paul Eggert, 2015/07/05