* view.c (view_growbuf_read_until): When using mc_read, recover
from interrupted system calls.
Этот коммит содержится в:
родитель
c4da4aecf2
Коммит
3dd9ec536b
@ -1,4 +1,9 @@
|
|||||||
2005-08-15 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
|
2005-08-15 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
* view.c (view_growbuf_read_until): When using mc_read, recover
|
||||||
|
from interrupted system calls.
|
||||||
|
|
||||||
|
2005-08-15 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
|
||||||
|
|
||||||
* view.c: Made the search function interruptible.
|
* view.c: Made the search function interruptible.
|
||||||
|
|
||||||
|
@ -415,7 +415,9 @@ view_growbuf_read_until (WView *view, offset_type ofs)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
assert (view->datasource == DS_VFS_PIPE);
|
assert (view->datasource == DS_VFS_PIPE);
|
||||||
nread = mc_read (view->ds_vfs_pipe, p, bytesfree);
|
do {
|
||||||
|
nread = mc_read (view->ds_vfs_pipe, p, bytesfree);
|
||||||
|
} while (nread == -1 && errno == EINTR);
|
||||||
if (nread == -1 || nread == 0) {
|
if (nread == -1 || nread == 0) {
|
||||||
view->growbuf_finished = TRUE;
|
view->growbuf_finished = TRUE;
|
||||||
(void) mc_close (view->ds_vfs_pipe);
|
(void) mc_close (view->ds_vfs_pipe);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user