From: Karl Heuer Date: Wed, 15 May 1996 14:38:30 +0000 (+0000) Subject: (sys_read): Introduce a small delay before reading from X-Git-Tag: emacs-19.34~625 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=341e722e0ee82bd8a870e7019d06f625c533f56e;p=emacs.git (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). --- 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: