From 09ececc3b7fc52149e30c62f493b295f99e49246 Mon Sep 17 00:00:00 2001 From: Araki Ken Date: Tue, 23 Sep 2014 02:07:56 +0900 Subject: Remove close_tty() from setup_child() because close_tty() sometimes interrupts loadGeneralFile() in loadImage() and corrupt image data can be cached in ~/.w3m. --- etc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc.c') diff --git a/etc.c b/etc.c index 8fe1215..dcc6edd 100644 --- a/etc.c +++ b/etc.c @@ -1365,7 +1365,13 @@ setup_child(int child, int i, int f) if (!child) SETPGRP(); #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(); +#endif close_all_fds_except(i, f); QuietMessage = TRUE; fmInitialized = FALSE; -- cgit v1.2.3