Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
05b72afd
Commit
05b72afd
authored
Jan 06, 2004
by
Kim F. Storm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(read_process_output): Only activate adaptive
buffering if we read less than 256 bytes at a time.
parent
08988329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/process.c
src/process.c
+2
-2
No files found.
src/process.c
View file @
05b72afd
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment