Remove close_tty() from setup_child() because close_tty() sometimes interrupts loadGeneralFile() in loadImage() and corrupt image data can be cached in ~/.w3m.
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
622bdafb59
commit
09ececc3b7
6
etc.c
6
etc.c
@@ -1365,7 +1365,13 @@ setup_child(int child, int i, int f)
|
|||||||
if (!child)
|
if (!child)
|
||||||
SETPGRP();
|
SETPGRP();
|
||||||
#endif /* __MINGW32_VERSION */
|
#endif /* __MINGW32_VERSION */
|
||||||
|
/*
|
||||||
|
* I don't know why but close_tty() sometimes interrupts loadGeneralFile() in loadImage()
|
||||||
|
* and corrupt image data can be cached in ~/.w3m.
|
||||||
|
*/
|
||||||
|
#if 0
|
||||||
close_tty();
|
close_tty();
|
||||||
|
#endif
|
||||||
close_all_fds_except(i, f);
|
close_all_fds_except(i, f);
|
||||||
QuietMessage = TRUE;
|
QuietMessage = TRUE;
|
||||||
fmInitialized = FALSE;
|
fmInitialized = FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user