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

Function ap_remove_pid

server/log.c:1617–1634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1615}
1616
1617AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *rel_fname)
1618{
1619 apr_status_t rv;
1620 const char *fname = ap_server_root_relative(p, rel_fname);
1621
1622 if (fname != NULL) {
1623 rv = apr_file_remove(fname, p);
1624 if (rv != APR_SUCCESS) {
1625 ap_log_error(APLOG_MARK, APLOG_ERR, rv, ap_server_conf, APLOGNO(00095)
1626 "failed to remove PID file %s", fname);
1627 }
1628 else {
1629 ap_log_error(APLOG_MARK, APLOG_INFO, 0, ap_server_conf, APLOGNO(00096)
1630 "removed PID file %s (pid=%" APR_PID_T_FMT ")",
1631 fname, getpid());
1632 }
1633 }
1634}
1635
1636AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *filename)
1637{

Callers 5

prefork_runFunction · 0.85
mpmt_os2_runFunction · 0.85
worker_runFunction · 0.85
winnt_runFunction · 0.85
event_runFunction · 0.85

Calls 2

ap_server_root_relativeFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected