[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>
This commit is contained in:
12
news.c
12
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(¤t_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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user