diff options
author | Jeff Trawick <trawick@apache.org> | 2011-03-28 13:35:08 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2011-03-28 13:35:08 +0000 |
commit | 7be2d26631bb0c7bb3114e8985572cea6f978d5e (patch) | |
tree | ff9e9a6185a098e426d4af90016bdde0892344a4 /include/http_log.h | |
parent | 6a7858862f6c3d85f2a6bafb399cae254c6dd152 (diff) | |
download | httpd-7be2d26631bb0c7bb3114e8985572cea6f978d5e.tar.gz |
consolidate logic to remove the pidfile in a new API,
ap_remove_pid(), related to existing ap_log_pid() and
ap_read_pid()
presumably this is useful to third-party MPMs as well
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086224 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_log.h')
-rw-r--r-- | include/http_log.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/http_log.h b/include/http_log.h index d635ab1cf2..f2aa4c7fd7 100644 --- a/include/http_log.h +++ b/include/http_log.h @@ -560,14 +560,21 @@ AP_DECLARE(void) ap_log_command_line(apr_pool_t *p, server_rec *s); /** * Log the current pid of the parent process - * @param p The pool to use for logging + * @param p The pool to use for processing * @param fname The name of the file to log to */ AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *fname); /** + * Remove the pidfile. + * @param p The pool to use for processing + * @param fname The name of the pid file to remove + */ +AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *fname); + +/** * Retrieve the pid from a pidfile. - * @param p The pool to use for logging + * @param p The pool to use for processing * @param filename The name of the file containing the pid * @param mypid Pointer to pid_t (valid only if return APR_SUCCESS) */ |