* view.c (view_load): Don't try to use fcntl() with VFS file
handles. That cannot work.
Этот коммит содержится в:
родитель
a5b6014c88
Коммит
9f55376746
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* achown.c: Changed all references to umode_t into mode_t.
|
* achown.c: Changed all references to umode_t into mode_t.
|
||||||
* file.c: Likewise.
|
* file.c: Likewise.
|
||||||
|
* view.c (view_load): Don't try to use fcntl() with VFS file
|
||||||
|
handles. That cannot work.
|
||||||
|
|
||||||
2005-07-03 Roland Illig <roland.illig@gmx.de>
|
2005-07-03 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
@ -1336,13 +1336,6 @@ view_load (WView *view, const char *_command, const char *_file,
|
|||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We don't need O_NONBLOCK after opening the file, unset it */
|
|
||||||
cntlflags = fcntl (fd, F_GETFL, 0);
|
|
||||||
if (cntlflags != -1) {
|
|
||||||
cntlflags &= ~O_NONBLOCK;
|
|
||||||
fcntl (fd, F_SETFL, cntlflags);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (st.st_size == 0 || mc_lseek (fd, 0, SEEK_SET) == -1) {
|
if (st.st_size == 0 || mc_lseek (fd, 0, SEEK_SET) == -1) {
|
||||||
/* Must be one of those nice files that grow (/proc) */
|
/* Must be one of those nice files that grow (/proc) */
|
||||||
view_set_datasource_vfs_pipe (view, fd);
|
view_set_datasource_vfs_pipe (view, fd);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user