diff options
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) |