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

Function ap_append_pid

server/util.c:2595–2601  ·  view source on GitHub ↗

* Given a string, append the PID deliminated by delim. * Usually used to create a pid-appended filepath name * (eg: /a/b/foo -> /a/b/foo.6726). A function, and not * a macro, to avoid unistd.h dependency */

Source from the content-addressed store, hash-verified

2593 * a macro, to avoid unistd.h dependency
2594 */
2595AP_DECLARE(char *) ap_append_pid(apr_pool_t *p, const char *string,
2596 const char *delim)
2597{
2598 return apr_psprintf(p, "%s%s%" APR_PID_T_FMT, string,
2599 delim, getpid());
2600
2601}
2602
2603/**
2604 * Parse a given timeout parameter string into an apr_interval_time_t value.

Callers 5

initialize_tablesFunction · 0.85
cgid_pre_configFunction · 0.85
set_script_socketFunction · 0.85
log_pid_tidFunction · 0.85
chdir_for_gprofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected