* [w3m-dev 04321] Re: w3m's bugs from bugs.debian.org

* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=185006#22
* main.c
(sig_chld): save exit code to d->err.
(addDownloadList): initialize d->running and d->err.
(DownloadListBuffer): check d->err.
* fm.h
(_DownloadList): add running and err.
* file.c
(save2tmp): check returned value of Strfputs().
(doFileSave): exit code is depend on the returned value of save2tmp().
This commit is contained in:
Ito Hiroyuki
2010-07-19 11:45:23 +00:00
parent fd8468f7f9
commit a19f155b48
4 changed files with 67 additions and 28 deletions

5
fm.h
View File

@@ -1,4 +1,4 @@
/* $Id: fm.h,v 1.139 2010/07/19 09:00:34 htrb Exp $ */
/* $Id: fm.h,v 1.140 2010/07/19 11:45:24 htrb Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -517,7 +517,8 @@ typedef struct _DownloadList {
char *lock;
clen_t size;
time_t time;
int ok;
int running;
int err;
struct _DownloadList *next;
struct _DownloadList *prev;
} DownloadList;