* ext.c (get_file_type_local): Fixes <zombies> in
QNX 6.x (QNX Neutrino) when guessing file type before viewing file.
Этот коммит содержится в:
родитель
c35092fabd
Коммит
28c5119bd1
@ -1,3 +1,11 @@
|
||||
2004-09-17 Pavel Shirshov <pavelsh@mail.ru>
|
||||
|
||||
* ext.c (get_file_type_local): Fixes <zombies> in
|
||||
QNX 6.x (QNX Neutrino) when guessing file type before
|
||||
viewing file.
|
||||
|
||||
Based on patch from Dmitry Alexeyev <dmi_a@qnx.org.ru>
|
||||
|
||||
2004-09-17 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* hotlist.c (add_new_entry_input): Fix warnings.
|
||||
|
@ -309,7 +309,13 @@ get_file_type_local (char *filename, char *buf, int buflen)
|
||||
g_free (tmp);
|
||||
g_free (command);
|
||||
if (f != NULL) {
|
||||
read_bytes = (fgets (buf, buflen - 1, f)
|
||||
#ifdef __QNXNTO__
|
||||
if (setvbuf (f, NULL, _IOFBF, 0) != 0) {
|
||||
(void)pclose (f);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
read_bytes = (fgets (buf, buflen, f)
|
||||
!= NULL);
|
||||
if (read_bytes == 0)
|
||||
buf[0] = 0;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user