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

Function ap_log_command_line

server/log.c:1581–1606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581AP_DECLARE(void) ap_log_command_line(apr_pool_t *plog, server_rec *s)
1582{
1583 int i;
1584 process_rec *process = s->process;
1585 char *result;
1586 int len_needed = 0;
1587
1588 /* Piece together the command line from the pieces
1589 * in process->argv, with spaces in between.
1590 */
1591 for (i = 0; i < process->argc; i++) {
1592 len_needed += strlen(process->argv[i]) + 1;
1593 }
1594
1595 result = (char *) apr_palloc(plog, len_needed);
1596 *result = '\0';
1597
1598 for (i = 0; i < process->argc; i++) {
1599 strcat(result, process->argv[i]);
1600 if ((i+1)< process->argc) {
1601 strcat(result, " ");
1602 }
1603 }
1604 ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, s, APLOGNO(00094)
1605 "Command line: '%s'", result);
1606}
1607
1608/* grab bag function to log commonly logged and shared info */
1609AP_DECLARE(void) ap_log_mpm_common(server_rec *s)

Callers 6

prefork_runFunction · 0.85
worker_runFunction · 0.85
winnt_runFunction · 0.85
netware_runFunction · 0.85
event_runFunction · 0.85
http_log.hFile · 0.85

Calls 1

ap_log_errorFunction · 0.50

Tested by

no test coverage detected