]> granicus.if.org Git - apache/commitdiff
Fixup DEBUG_CGI code paths to compile and not leak fds.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 18 Feb 2002 06:15:38 +0000 (06:15 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 18 Feb 2002 06:15:38 +0000 (06:15 +0000)
PR: 9670, 9671
Submitted by:   David MacKenzie <djm@pix.net>
Reviewed by: Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93474 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/generators/mod_cgi.c

diff --git a/CHANGES b/CHANGES
index 8e9877346f8de00b10ad5489686f41149aae8b07..7e05c7f321fda426fa201b16fba7003f707ee0b2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.33-dev
 
+  *) Fix DEBUG_CGI support in mod_cgi.  PR 9670, 9671.
+     [David MacKenzie <djm@pix.net>]
+
   *) Fix incorrect check for script_in in mod_cgi.  PR 9669.
      [David MacKenzie <djm@pix.net>]
 
index cd7bb9930d257931ed08ee1e3297a688330a38ca..f29cf87cd7c0cd29a7ca6f089bf4cd4f968613a5 100644 (file)
@@ -402,8 +402,8 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
 
     RAISE_SIGSTOP(CGI_CHILD);
 #ifdef DEBUG_CGI
-    fprintf(dbg, "Attempting to exec %s as %sCGI child (argv0 = %s)\n",
-           r->filename, cld->nph ? "NPH " : "", argv0);
+    fprintf(dbg, "Attempting to exec %s as CGI child (argv0 = %s)\n",
+           r->filename, argv[0]);
 #endif
 
     if (e_info->prog_type == RUN_AS_CGI) {
@@ -482,6 +482,9 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
             }
         }
     }
+#ifdef DEBUG_CGI
+    fclose(dbg);
+#endif
     return (rc);
 }