diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-10 17:06:17 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-10 17:06:17 +0000 |
commit | f4d6305bdddca9c1deb51bd19904779cbbf4406b (patch) | |
tree | 06f30cd3d18ec1357802f1b836a83007992c3267 /news.c | |
parent | fix indent (diff) | |
download | w3m-f4d6305bdddca9c1deb51bd19904779cbbf4406b.tar.gz w3m-f4d6305bdddca9c1deb51bd19904779cbbf4406b.zip |
[w3m-dev 03632] cleanup (don't close connection of news server)
* file.c (loadSomething): remove UFclose nntp:,news:
(loadFile): UFclose
(loadGeneralFile): always UFclose
* html.h (UFclose): only reset when ISclose ==0
* istream.c (ISclose): return int
(ISfileno): flag IST_UNCLOSE
* istream.h (ISclose): return int
(IST_UNCLOSE): added
* news.c (news_close): reset IST_UNCLOSE
(news_open): set IST_UNCLOSE
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'news.c')
-rw-r--r-- | news.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: news.c,v 1.10 2003/01/07 15:56:41 ukai Exp $ */ +/* $Id: news.c,v 1.11 2003/01/10 17:06:25 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include <stdio.h> @@ -58,6 +58,7 @@ news_close(News * news) if (!news->host) return; if (news->rf) { + IStype(news->rf) &= ~IST_UNCLOSE; ISclose(news->rf); news->rf = NULL; } @@ -80,6 +81,7 @@ news_open(News * news) news->wf = fdopen(dup(sock), "wb"); if (!news->rf || !news->wf) goto open_err; + IStype(news->rf) |= IST_UNCLOSE; news_command(news, NULL, &status); if (status != 200 && status != 201) goto open_err; |