aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-05-15 14:38:30 +0000
committerKarl Heuer1996-05-15 14:38:30 +0000
commit341e722e0ee82bd8a870e7019d06f625c533f56e (patch)
treeba08b3b400a8616790b3225815f52f245d6dc7fe
parent799abb26c3caaf7eb71c01c3bf11893ccdcc1abd (diff)
downloademacs-341e722e0ee82bd8a870e7019d06f625c533f56e.tar.gz
emacs-341e722e0ee82bd8a870e7019d06f625c533f56e.zip
(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).
-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)
1851 ResetEvent (cp->char_avail); 1851 ResetEvent (cp->char_avail);
1852 1852
1853 case STATUS_READ_ACKNOWLEDGED: 1853 case STATUS_READ_ACKNOWLEDGED:
1854 /* Give process time to buffer some more output for us */
1855 Sleep (50);
1854 break; 1856 break;
1855 1857
1856 default: 1858 default: