diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:45:29 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:45:29 +0000 |
commit | 2945f70be161735bf7efaefde43125a9ad3a4c88 (patch) | |
tree | da85d4bca39cba5a7c4e6714c8b73d6a8cd547fe /image.c | |
parent | Releasing debian version 0.5.2-10 (diff) | |
download | w3m-2945f70be161735bf7efaefde43125a9ad3a4c88.tar.gz w3m-2945f70be161735bf7efaefde43125a9ad3a4c88.zip |
Releasing debian version 0.5.3-1debian/0.5.3-1
Diffstat (limited to 'image.c')
-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; |