diff options
author | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-12-21 10:13:55 +0000 |
---|---|---|
committer | Ito Hiroyuki <ZXB01226@nifty.com> | 2010-12-21 10:13:55 +0000 |
commit | 40feb310a3399b674b4f8924465cee1ea441ffde (patch) | |
tree | 2df2f0c81b76925e8fbf681848cdd0d762e54d72 /image.c | |
parent | add documents about some options for w3mimgdisplay. (diff) | |
download | w3m-40feb310a3399b674b4f8924465cee1ea441ffde.tar.gz w3m-40feb310a3399b674b4f8924465cee1ea441ffde.zip |
w3mimgdisplay supports Windows console (http://www.j10n.org/files/w3m-cvs-1.1040-misc.patch).
Diffstat (limited to '')
-rw-r--r-- | image.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.36 2003/07/07 15:49:03 ukai Exp $ */ +/* $Id: image.c,v 1.37 2010/12/21 10:13:55 htrb Exp $ */ #include "fm.h" #include <sys/types.h> @@ -115,10 +115,13 @@ openImgdisplay() static void closeImgdisplay() { - if (Imgdisplay_rf) - fclose(Imgdisplay_rf); if (Imgdisplay_wf) fclose(Imgdisplay_wf); + if (Imgdisplay_rf) { + /* sync with the child */ + getc(Imgdisplay_rf); /* EOF expected */ + fclose(Imgdisplay_rf); + } if (Imgdisplay_pid) kill(Imgdisplay_pid, SIGKILL); Imgdisplay_rf = NULL; |