diff options
| author | Kim F. Storm | 2004-01-06 23:34:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-01-06 23:34:45 +0000 |
| commit | 05b72afdefbb1c285a9bb2dda7e77610f86cccb6 (patch) | |
| tree | 160eeb6c11c5f8300d99e5586df02f0e4b902798 /src/process.c | |
| parent | 0898832984d3d3d7762ea032581daed58b1583fa (diff) | |
| download | emacs-05b72afdefbb1c285a9bb2dda7e77610f86cccb6.tar.gz emacs-05b72afdefbb1c285a9bb2dda7e77610f86cccb6.zip | |
(read_process_output): Only activate adaptive
buffering if we read less than 256 bytes at a time.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 3cb63de1584..315b31b728f 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4771,7 +4771,7 @@ read_process_output (proc, channel) | |||
| 4771 | if (!NILP (p->adaptive_read_buffering)) | 4771 | if (!NILP (p->adaptive_read_buffering)) |
| 4772 | { | 4772 | { |
| 4773 | int delay = XINT (p->read_output_delay); | 4773 | int delay = XINT (p->read_output_delay); |
| 4774 | if (nbytes < readmax - carryover) | 4774 | if (nbytes < 256) |
| 4775 | { | 4775 | { |
| 4776 | if (delay < READ_OUTPUT_DELAY_MAX_MAX) | 4776 | if (delay < READ_OUTPUT_DELAY_MAX_MAX) |
| 4777 | { | 4777 | { |
| @@ -4780,7 +4780,7 @@ read_process_output (proc, channel) | |||
| 4780 | delay += READ_OUTPUT_DELAY_INCREMENT * 2; | 4780 | delay += READ_OUTPUT_DELAY_INCREMENT * 2; |
| 4781 | } | 4781 | } |
| 4782 | } | 4782 | } |
| 4783 | else if (delay > 0) | 4783 | else if (delay > 0 && (nbytes == readmax - carryover)) |
| 4784 | { | 4784 | { |
| 4785 | delay -= READ_OUTPUT_DELAY_INCREMENT; | 4785 | delay -= READ_OUTPUT_DELAY_INCREMENT; |
| 4786 | if (delay == 0) | 4786 | if (delay == 0) |