aboutsummaryrefslogtreecommitdiffstats
path: root/news.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-29 17:10:17 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-29 17:10:17 +0000
commitb0a661730f022b85ef0dfd6244a7cef05357856d (patch)
tree1455f40baac66a86894f2f8eb969c93c62e2ff1e /news.c
parent[w3m-dev 03707] Don't stop loading image when moving to next page. (diff)
downloadw3m-b0a661730f022b85ef0dfd6244a7cef05357856d.tar.gz
w3m-b0a661730f022b85ef0dfd6244a7cef05357856d.zip
[w3m-dev 03708] Re: Don't stop loading image when moving to next page.
* config.h.dist (lstat): define ifndef HAVE_LSTAT * configure (config.h) ditto * display.c (fmTerm): new loadImage (save_current_buf): only ifdef USE_BUFINFO (displayBuffer): new loadImage * etc.c (setup_child): TrapSignal * file.c (loadGeneralFile): TRAP_OFF, TRAP_ON (loadHTMLstream): ditto (loadGopherDir): ditto (loadBuffer): ditto (loadImageBuffer): ditto (getNextPage): ditto (save2tmp): ditto * fm.h (TrapSignal): added (TRAP_ON): added (TRAP_OFF): added * form.c (HAVE_LSTAT): deleted * frame.c (createFrameFile): TRAP_OFF, TRAP_ON * image.c (image_buffer): added (deleteImage): new loadImage (getAllImage): initialize image_buffer (loadImage): rewrite * main.c (main): new loadImage (checkDownloadList): remove ifdef HAVE_LSTAT * news.c (loadNwesgroup): TRAP_ON, TRAP_OFF * proto.h (loadImage): add buf arg * url.c (openSocket): TRAP_ON, TRAP_OFF (check_no_proxy): TRAP_ON, TRAP_OFF From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'news.c')
-rw-r--r--news.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/news.c b/news.c
index 840bbd1..40cd983 100644
--- a/news.c
+++ b/news.c
@@ -1,4 +1,4 @@
-/* $Id: news.c,v 1.14 2003/01/15 16:24:25 ukai Exp $ */
+/* $Id: news.c,v 1.15 2003/01/29 17:10:49 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include <stdio.h>
@@ -314,7 +314,7 @@ loadNewsgroup(ParsedURL *pu, char *code)
char *volatile scheme, *volatile group, *volatile list;
int status, i, first, last;
volatile int flag = 0, start = 0, end = 0;
- MySignalHandler(*volatile trap) (SIGNAL_ARG) = NULL;
+ MySignalHandler(*volatile prevtrap) (SIGNAL_ARG) = NULL;
if (current_news.host == NULL || !pu->file || *pu->file == '\0')
return NULL;
@@ -346,9 +346,7 @@ loadNewsgroup(ParsedURL *pu, char *code)
Strcat_charp(page, "</table>\n<p>Transfer Interrupted!\n");
goto news_end;
}
- trap = signal(SIGINT, KeyAbort);
- if (fmInitialized)
- term_cbreak();
+ TRAP_ON;
tmp = news_command(&current_news, "GROUP", group, &status);
if (status != 211)
@@ -489,9 +487,7 @@ loadNewsgroup(ParsedURL *pu, char *code)
news_end:
Strcat_charp(page, "</body>\n</html>\n");
- if (fmInitialized)
- term_raw();
- signal(SIGINT, trap);
+ TRAP_OFF;
return page;
}