replace pclose passed to localcgi_post/get() with fclose in openURL()

This commit is contained in:
Dai Sato
2006-02-10 12:52:23 +00:00
parent 9d56e4804d
commit 77d7685295
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2006-02-10 Dai Sato <satodai@w3m.jp>
* http://dog.w3m.jp/bbs/spool/until200602.html#20060210153135@keijiwan
* url.c: replace pclose passed to localcgi_post/get() with fclose in openURL()
2006-02-09 Dai Sato <satodai@w3m.jp> 2006-02-09 Dai Sato <satodai@w3m.jp>
* http://vimrc.hp.infoseek.co.jp/w3m-pclose.html * http://vimrc.hp.infoseek.co.jp/w3m-pclose.html
@@ -8648,4 +8653,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.947 2006/02/09 12:49:52 inu Exp $ $Id: ChangeLog,v 1.948 2006/02/10 12:52:23 inu Exp $

6
url.c
View File

@@ -1,4 +1,4 @@
/* $Id: url.c,v 1.89 2004/04/16 18:47:19 ukai Exp $ */ /* $Id: url.c,v 1.90 2006/02/10 12:52:23 inu Exp $ */
#include "fm.h" #include "fm.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
@@ -1526,12 +1526,12 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
/* local CGI: POST */ /* local CGI: POST */
uf.stream = newFileStream(localcgi_post(pu->real_file, pu->query, uf.stream = newFileStream(localcgi_post(pu->real_file, pu->query,
request, option->referer), request, option->referer),
(void (*)())pclose); (void (*)())fclose);
else else
/* lodal CGI: GET */ /* lodal CGI: GET */
uf.stream = newFileStream(localcgi_get(pu->real_file, pu->query, uf.stream = newFileStream(localcgi_get(pu->real_file, pu->query,
option->referer), option->referer),
(void (*)())pclose); (void (*)())fclose);
if (uf.stream) { if (uf.stream) {
uf.is_cgi = TRUE; uf.is_cgi = TRUE;
uf.scheme = pu->scheme = SCM_LOCAL_CGI; uf.scheme = pu->scheme = SCM_LOCAL_CGI;