aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-15 16:17:11 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-15 16:17:11 +0000
commit76cac853891ec4bfb776178e361a25093365f45a (patch)
treed27cdca3883a507128a9402f4fbcaaea4beda17d
parent[w3m-dev 03641] Re: cleanup (don't close connection of news server) (diff)
downloadw3m-76cac853891ec4bfb776178e361a25093365f45a.tar.gz
w3m-76cac853891ec4bfb776178e361a25093365f45a.zip
[w3m-dev 03642] Re: cleanup (don't close connection of news server)
* local.c (localcgi_post): localcgi_popen_r first From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--local.c12
2 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e18aed3..aae20d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2003-01-16 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03642] Re: cleanup (don't close connection of news server)
+ * local.c (localcgi_post): localcgi_popen_r first
+
+2003-01-16 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03641] Re: cleanup (don't close connection of news server)
* ftp.c (ftp_command): fix fwrite arg
* news.c (news_command): fix fwrite arg
@@ -6466,4 +6471,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.682 2003/01/15 16:14:40 ukai Exp $
+$Id: ChangeLog,v 1.683 2003/01/15 16:17:11 ukai Exp $
diff --git a/local.c b/local.c
index 17e1b64..82fa748 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.18 2003/01/15 16:11:43 ukai Exp $ */
+/* $Id: local.c,v 1.19 2003/01/15 16:17:11 ukai Exp $ */
#include "fm.h"
#include <string.h>
#include <stdio.h>
@@ -396,13 +396,13 @@ localcgi_post(char *uri, char *qstr, FormList *request, char *referer)
if (check_local_cgi(file, status) < 0)
return NULL;
tmp1 = tmpfname(TMPF_DFL, NULL);
+ if ((pid = localcgi_popen_r(&f)) < 0)
+ return NULL;
+ else if (pid)
+ return f;
f1 = fopen(tmp1->ptr, "w");
if (f1 == NULL)
- return NULL;
- if ((pid = localcgi_popen_r(&f))) {
- fclose(f1);
- return pid > 0 ? f : NULL;
- }
+ exit(1);
if (qstr == NULL) {
set_cgi_environ(uri, file, uri);
}