aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-02 17:48:56 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-02 17:48:56 +0000
commitf2770707c1da6e55050e06de5cbe85ea031f6502 (patch)
treef19bdf2534006fd225321e1d68e5ca4917b6d4ca /file.c
parentremove ununsed variables (diff)
downloadw3m-f2770707c1da6e55050e06de5cbe85ea031f6502.tar.gz
w3m-f2770707c1da6e55050e06de5cbe85ea031f6502.zip
[w3m-dev 03504] coredump when ssl error
* file.c (loadGeneralFile): term_raw, SIGINT From: AIDA Shinra <aida-s@jcom.home.ne.jp>
Diffstat (limited to '')
-rw-r--r--file.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/file.c b/file.c
index 2e398bf..dd23371 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.137 2002/12/02 17:39:09 ukai Exp $ */
+/* $Id: file.c,v 1.138 2002/12/02 17:48:58 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1585,6 +1585,10 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
}
if (status == HTST_MISSING) {
+ if (fmInitialized)
+ term_raw();
+ if (prevtrap)
+ signal(SIGINT, prevtrap);
UFclose(&f);
return NULL;
}