svn commit: trunk/busybox/networking
vodz at busybox.net
vodz at busybox.net
Mon Sep 19 10:46:46 UTC 2005
Author: vodz
Date: 2005-09-19 03:46:44 -0700 (Mon, 19 Sep 2005)
New Revision: 11501
Log:
destroy bug #421
Modified:
trunk/busybox/networking/httpd.c
Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c 2005-09-19 10:28:43 UTC (rev 11500)
+++ trunk/busybox/networking/httpd.c 2005-09-19 10:46:44 UTC (rev 11501)
@@ -1148,9 +1148,9 @@
*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 @@
handleIncoming();
if(!config->debugHttpd)
exit(0);
+ } else {
+ if(!config->debugHttpd)
+ wait(NULL);
}
close(s);
}
More information about the busybox-cvs
mailing list