diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2009-05-15 21:46:45 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2009-05-15 21:46:45 +0200 |
commit | 3aac4df095cf483311a7a9444ec4c22cbbb65259 (patch) | |
tree | 11194c522a9286674283f2a53979f192f7313d25 /include/http_log.h | |
parent | Set ignores; a good case for cut n paste instead of reinventing wheels (diff) | |
download | apache2-3aac4df095cf483311a7a9444ec4c22cbbb65259.tar.xz apache2-3aac4df095cf483311a7a9444ec4c22cbbb65259.zip |
Revert the default resource abuse introduced in r104019, which can mask
child logger process failures, by migrating back to 2.0.49 and prior when
rotated logs were reliable on Solaris, etc.
Provides two new piped syntaxes for ErrorLog; "||program" or "|$shellcmd",
where the existing 2.2 behavior may be preserved or the new 2.4 behavior
explicitly elected. The default should discourage users from "|$" syntax
except as required, in the future.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@775300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_log.h')
-rw-r--r-- | include/http_log.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/http_log.h b/include/http_log.h index b754bcb91a..bb7ebfd303 100644 --- a/include/http_log.h +++ b/include/http_log.h @@ -272,10 +272,23 @@ typedef struct piped_log piped_log; * @param p The pool to allocate out of * @param program The program to run in the logging process * @return The piped log structure + * @tip The log program is invoked as APR_SHELLCMD_ENV, + * @see ap_open_piped_log_ex to modify this behavior */ AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program); /** + * Open the piped log process specifying the execution choice for program + * @param p The pool to allocate out of + * @param program The program to run in the logging process + * @param cmdtype How to invoke program, e.g. APR_PROGRAM, APR_SHELLCMD_ENV, etc + * @return The piped log structure + */ +AP_DECLARE(piped_log *) ap_open_piped_log_ex(apr_pool_t *p, + const char *program, + apr_cmdtype_e cmdtype); + +/** * Close the piped log and kill the logging process * @param pl The piped log structure */ |