diff options
author | "Vladimir N. Oleynik" | 2005-09-19 10:46:44 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2005-09-19 10:46:44 +0000 |
commit | 54deebf4e41fd8cee3b5800a08844adc985d2c03 (patch) | |
tree | 91a4acbd9c5e15234118252dc75469c82d3520b6 | |
parent | a0ae6de84811a603d2138d06d7f0b1f159074368 (diff) | |
download | busybox-54deebf4e41fd8cee3b5800a08844adc985d2c03.zip busybox-54deebf4e41fd8cee3b5800a08844adc985d2c03.tar.gz |
destroy bug #421
-rw-r--r-- | networking/httpd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 191a316..69c30bf 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1148,9 +1148,9 @@ static int sendCgi(const char *url, *script = '\0'; /* reduce /PATH_INFO */ /* SCRIPT_FILENAME required by PHP in CGI mode */ if(realpath(purl + 1, realpath_buff)) - addEnv("SCRIPT", "FILENAME", realpath_buff); + addEnv("SCRIPT", "FILENAME", realpath_buff); else - *realpath_buff = 0; + *realpath_buff = 0; /* set SCRIPT_NAME as full path: /cgi-bin/dirs/script.cgi */ addEnv("SCRIPT_NAME", "", purl); addEnv("QUERY_STRING", "", config->query); @@ -1877,6 +1877,9 @@ static int miniHttpd(int server) handleIncoming(); if(!config->debugHttpd) exit(0); + } else { + if(!config->debugHttpd) + wait(NULL); } close(s); } |