Mercurial > emacs
comparison src/w32.c @ 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 | 867e4ead88d9 |
children | 53bb2499db2a |
comparison
equal
deleted
inserted
replaced
15236:99d01b1b8799 | 15237:e44ef00f509f |
---|---|
1849 extra = 1; | 1849 extra = 1; |
1850 cp->status = STATUS_READ_ACKNOWLEDGED; | 1850 cp->status = STATUS_READ_ACKNOWLEDGED; |
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: |
1857 DebPrint (("sys_read: bad status %d\n", current_status)); | 1859 DebPrint (("sys_read: bad status %d\n", current_status)); |
1858 errno = EBADF; | 1860 errno = EBADF; |