* 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 */
| 2593 | * a macro, to avoid unistd.h dependency |
| 2594 | */ |
| 2595 | AP_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. |
no outgoing calls
no test coverage detected