You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2010/02/17 00:09:50 UTC
svn commit: r910756 - /httpd/httpd/trunk/support/htcacheclean.c
Author: minfrin
Date: Tue Feb 16 23:09:50 2010
New Revision: 910756
URL: http://svn.apache.org/viewvc?rev=910756&view=rev
Log:
Make sure the pidfile is deleted on close.
Modified:
httpd/httpd/trunk/support/htcacheclean.c
Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htcacheclean.c?rev=910756&r1=910755&r2=910756&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Tue Feb 16 23:09:50 2010
@@ -972,10 +972,9 @@
apr_file_t *file;
pid_t mypid = getpid();
if (APR_SUCCESS == (status = apr_file_open(&file, pidfile, APR_WRITE
- | APR_CREATE | APR_TRUNCATE,
+ | APR_CREATE | APR_TRUNCATE | APR_DELONCLOSE,
APR_UREAD | APR_UWRITE | APR_GREAD, pool))) {
apr_file_printf(file, "%" APR_PID_T_FMT APR_EOL_STR, mypid);
- apr_file_close(file);
}
else if (!isdaemon) {
apr_file_printf(errfile,