From 66d04cc1619b037bff177acdffbbe52fbdaaa4b3 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 10 Jan 2003 16:42:14 +0000 Subject: [w3m-dev 03629] delete tmp file * etc.c (tempfname): always file to delete * file.c (xface2xpm): no need fileToDelete (readHeader): ditto (loadGeneralFile): ditto (loadHTMLBuffer): ditto (loadHTMLString): ditto (loadGopherDir): ditto (loadImageBuffer): ditto (doExternal): rewrite (doFileSave): no need fileToDelete (uncompress_stream): ditto * fm.h (CurrentPid): added * image.c (getImage): cache->touch to delete * local.c (setLocalCookie): use CurrentPid (localcgi_post): fileToDelete * main.c (main): CurrentPid (pipeBuf): no need fileToDelete (query_from_followform): CurrentPid (vmSrc): no need fileToDelete From: Hironori SAKAMOTO --- local.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'local.c') diff --git a/local.c b/local.c index bfc886e..018a98c 100644 --- a/local.c +++ b/local.c @@ -1,4 +1,4 @@ -/* $Id: local.c,v 1.16 2002/11/27 16:35:18 ukai Exp $ */ +/* $Id: local.c,v 1.17 2003/01/10 16:42:50 ukai Exp $ */ #include "fm.h" #include #include @@ -30,7 +30,7 @@ setLocalCookie() char hostname[256]; gethostname(hostname, 256); - Local_cookie = Sprintf("%d.%ld@%s", getpid(), lrand48(), hostname); + Local_cookie = Sprintf("%d.%ld@%s", CurrentPid, lrand48(), hostname); set_environ("LOCAL_COOKIE", Local_cookie->ptr); } @@ -400,7 +400,6 @@ localcgi_post(char *uri, char *qstr, FormList *request, char *referer) f1 = fopen(tmp1->ptr, "w"); if (f1 == NULL) return NULL; - pushText(fileToDelete, tmp1->ptr); if ((pid = localcgi_popen_r(&f))) { fclose(f1); return pid > 0 ? f : NULL; -- cgit v1.2.3