httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r910756 - /httpd/httpd/trunk/support/htcacheclean.c
Date Tue, 16 Feb 2010 23:09:50 GMT
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,



Mime
View raw message