aboutsummaryrefslogtreecommitdiffstats
path: root/w3mimgdisplay.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-17 16:57:17 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-17 16:57:17 +0000
commit439d2745a517b84993c2d8dc2eda8b168fe75d2b (patch)
treea8f3874bdc1d8cf72375c78fb35d332bf409e4fd /w3mimgdisplay.c
parentNEWS update (diff)
downloadw3m-439d2745a517b84993c2d8dc2eda8b168fe75d2b.tar.gz
w3m-439d2745a517b84993c2d8dc2eda8b168fe75d2b.zip
[w3m-dev 03646] setup child process, local CGI
* etc.c (reset_signals): static don't ignore SIGUSR1 (close_all_fds_except): static DEV_NULL_PATH (setup_child): added (myExec): rewrite (mySystem): rewrite * file.c (readHeader): check image_source (loadGeneralFile): check image_source (doExternal): use setup_child (_doFileCopy): use setup_child (doFileSave): use setup_child (uncompress_stream): check image_source use setup_child * image.c (getCharSize): no need stderr redirect (openImgdisplay): use setup_child (loadImage): use setup_child (getImageSize): no need stderr redirect * local.c (writeLocalCookie): check Local_cookie_file (localcgi_popen_rw): added (localcgi_popen_r): deleted (localcgi_post): rewrite (localcgi_get): deleted * proto.h (localcgi_get): defined by localcgi_post (reset_signals): deleted (close_all_fds_except): deleted (close_all_fds): deleted (setup_child): added * search.c (open_migemo): use setup_child, myExec * w3mimgdisplay.c (main): use DEV_NULL_PATH From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'w3mimgdisplay.c')
-rw-r--r--w3mimgdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c
index 35bd1d3..4f48441 100644
--- a/w3mimgdisplay.c
+++ b/w3mimgdisplay.c
@@ -1,4 +1,4 @@
-/* $Id: w3mimgdisplay.c,v 1.11 2002/12/25 16:14:45 ukai Exp $ */
+/* $Id: w3mimgdisplay.c,v 1.12 2003/01/17 16:57:21 ukai Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -37,7 +37,7 @@ main(int argc, char **argv)
#endif
GetOption(argc, argv);
if (!defined_debug)
- freopen("/dev/null", "w", stderr);
+ freopen(DEV_NULL_PATH, "w", stderr);
#ifdef W3MIMGDISPLAY_SETUID
/*