diff options
| author | Karl Heuer | 1996-05-15 14:38:30 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-05-15 14:38:30 +0000 |
| commit | 341e722e0ee82bd8a870e7019d06f625c533f56e (patch) | |
| tree | ba08b3b400a8616790b3225815f52f245d6dc7fe | |
| parent | 799abb26c3caaf7eb71c01c3bf11893ccdcc1abd (diff) | |
| download | emacs-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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: |