| 1579 | } |
| 1580 | |
| 1581 | AP_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 */ |
| 1609 | AP_DECLARE(void) ap_log_mpm_common(server_rec *s) |
no test coverage detected