aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorAraki Ken <arakiken@users.sf.net>2014-09-22 17:07:56 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 11:47:05 +0000
commit09ececc3b7fc52149e30c62f493b295f99e49246 (patch)
treeab3a396bc8c4220d65035b5153aa3d21e47cd1ef /etc.c
parentMinor fix. (diff)
downloadw3m-09ececc3b7fc52149e30c62f493b295f99e49246.tar.gz
w3m-09ececc3b7fc52149e30c62f493b295f99e49246.zip
Remove close_tty() from setup_child() because close_tty() sometimes interrupts loadGeneralFile() in loadImage() and corrupt image data can be cached in ~/.w3m.
Diffstat (limited to '')
-rw-r--r--etc.c6
1 files changed, 6 insertions, 0 deletions
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;