MCPcopy Create free account
hub / github.com/apache/httpd / ap_open_piped_log

Function ap_open_piped_log

server/log.c:1964–1982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1962#endif
1963
1964AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p,
1965 const char *program)
1966{
1967 apr_cmdtype_e cmdtype = APR_PROGRAM_ENV;
1968
1969 /* In 2.4 favor PROGRAM_ENV, accept "||prog" syntax for compatibility
1970 * and "|$cmd" to override the default.
1971 * Any 2.2 backport would continue to favor SHELLCMD_ENV so there
1972 * accept "||prog" to override, and "|$cmd" to ease conversion.
1973 */
1974 if (*program == '|')
1975 ++program;
1976 if (*program == '$') {
1977 cmdtype = APR_SHELLCMD_ENV;
1978 ++program;
1979 }
1980
1981 return ap_open_piped_log_ex(p, program, cmdtype);
1982}
1983
1984AP_DECLARE(void) ap_close_piped_log(piped_log *pl)
1985{

Callers 2

open_logFunction · 0.85

Calls 1

ap_open_piped_log_exFunction · 0.85

Tested by

no test coverage detected