changeset 15237:e44ef00f509f

(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).
author Karl Heuer <kwzh@gnu.org>
date Wed, 15 May 1996 14:38:30 +0000
parents 99d01b1b8799
children 4ca30238fdf7
files src/w32.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32.c	Wed May 15 14:32:37 1996 +0000
+++ b/src/w32.c	Wed May 15 14:38:30 1996 +0000
@@ -1851,6 +1851,8 @@
 	      ResetEvent (cp->char_avail);
 
 	    case STATUS_READ_ACKNOWLEDGED:
+	      /* Give process time to buffer some more output for us */
+	      Sleep (50);
 	      break;
 
 	    default: