1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

(sys_read): Introduce a small delay before reading from

a pipe or socket to allow more data to be buffered; otherwise,
process output is read one byte at a time on fast machines
(which is slow).
This commit is contained in:
Karl Heuer 1996-05-15 14:38:30 +00:00
parent 799abb26c3
commit 341e722e0e

View File

@ -1851,6 +1851,8 @@ sys_read (int fd, char * buffer, unsigned int count)
ResetEvent (cp->char_avail);
case STATUS_READ_ACKNOWLEDGED:
/* Give process time to buffer some more output for us */
Sleep (50);
break;
default: