HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0898832
)
(read_process_output): Only activate adaptive
author
Kim F. Storm
<storm@cua.dk>
Tue, 6 Jan 2004 23:34:45 +0000
(23:34 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Tue, 6 Jan 2004 23:34:45 +0000
(23:34 +0000)
buffering if we read less than 256 bytes at a time.
src/process.c
patch
|
blob
|
blame
|
history
diff --git
a/src/process.c
b/src/process.c
index
3cb63de
..
315b31b
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-4771,7
+4771,7
@@
read_process_output (proc, channel)
if (!NILP (p->adaptive_read_buffering))
{
int delay = XINT (p->read_output_delay);
- if (nbytes <
readmax - carryover
)
+ if (nbytes <
256
)
{
if (delay < READ_OUTPUT_DELAY_MAX_MAX)
{
@@
-4780,7
+4780,7
@@
read_process_output (proc, channel)
delay += READ_OUTPUT_DELAY_INCREMENT * 2;
}
}
- else if (delay > 0)
+ else if (delay > 0
&& (nbytes == readmax - carryover)
)
{
delay -= READ_OUTPUT_DELAY_INCREMENT;
if (delay == 0)