summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-05-15 14:38:30 +0000
committerKarl Heuer <kwzh@gnu.org>1996-05-15 14:38:30 +0000
commit341e722e0ee82bd8a870e7019d06f625c533f56e (patch)
treeba08b3b400a8616790b3225815f52f245d6dc7fe /src/w32.c
parent799abb26c3caaf7eb71c01c3bf11893ccdcc1abd (diff)
downloademacs-341e722e0ee82bd8a870e7019d06f625c533f56e.tar.gz
(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).
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index bf9f858b700..fd1d5e10508 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -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: