]> granicus.if.org Git - apache/commitdiff
start piped loggers via the shell, passing through the environment variables
authorJeff Trawick <trawick@apache.org>
Wed, 23 Jun 2004 12:32:22 +0000 (12:32 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 23 Jun 2004 12:32:22 +0000 (12:32 +0000)
in the httpd process

this requires a new APR feature (APR_SHELLCMD_ENV), just added to apr 1.0-dev

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

CHANGES
server/log.c

diff --git a/CHANGES b/CHANGES
index a29f59ea83338a93a965c17be5c7ca379abc812e..fce7c86ffecf72c7143b99b69b788ae53b765b0b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -40,8 +40,9 @@ Changes with Apache 2.1.0-dev
   *) Fix bug in mod_deflate that unconditionally sent deflate'd output
      even when Accept-Encoding is not present.  [Justin Erenkrantz]
 
-  *) Pass environment variables through to piped loggers, resolving
-     a regression since 1.3.  [Ken Coar, Jeff Trawick]
+  *) Pass environment variables through to piped loggers and start
+     them via the shell, resolving regressions since 1.3.  PR 28815
+     [Ken Coar, Jeff Trawick]
 
   *) Enable the option to support anonymous shared memory in mod_ldap.
      This makes the cache work on Linux again. [Graham Leggett]
index d4f1b54ad6465298f2e8808c5e0a9bb4f9001e90..f8c2af4204a9a582e3b0a0b683b4c509a7202566 100644 (file)
@@ -198,7 +198,7 @@ static int log_child(apr_pool_t *p, const char *progname,
 
     if (((rc = apr_procattr_create(&procattr, p)) == APR_SUCCESS)
         && ((rc = apr_procattr_cmdtype_set(procattr,
-                                           APR_PROGRAM_ENV)) == APR_SUCCESS)
+                                           APR_SHELLCMD_ENV)) == APR_SUCCESS)
         && ((rc = apr_procattr_io_set(procattr,
                                       APR_FULL_BLOCK,
                                       APR_NO_PIPE,
@@ -725,7 +725,7 @@ static int piped_log_spawn(piped_log *pl)
 
     if (((status = apr_procattr_create(&procattr, pl->p)) != APR_SUCCESS) ||
         ((status = apr_procattr_cmdtype_set(procattr,
-                                            APR_PROGRAM_ENV)) != APR_SUCCESS) || 
+                                            APR_SHELLCMD_ENV)) != APR_SUCCESS) || 
         ((status = apr_procattr_child_in_set(procattr,
                                              ap_piped_log_read_fd(pl),
                                              ap_piped_log_write_fd(pl)))