httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r771145 - /httpd/httpd/trunk/modules/arch/unix/mod_privileges.c
Date Sun, 03 May 2009 23:04:02 GMT
Author: niq
Date: Sun May  3 23:04:02 2009
New Revision: 771145

URL: http://svn.apache.org/viewvc?rev=771145&view=rev
Log:
Whoops!  cleanup r771144, which had some local/dev stuff left in

Modified:
    httpd/httpd/trunk/modules/arch/unix/mod_privileges.c

Modified: httpd/httpd/trunk/modules/arch/unix/mod_privileges.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/unix/mod_privileges.c?rev=771145&r1=771144&r2=771145&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/unix/mod_privileges.c (original)
+++ httpd/httpd/trunk/modules/arch/unix/mod_privileges.c Sun May  3 23:04:02 2009
@@ -140,7 +140,6 @@
      */
     if ((cfg->mode == PRIV_SECURE) ||
         ((cfg->mode == PRIV_SELECTIVE) && (dcfg->mode == PRIV_SECURE))) {
-    //    return APR_SUCCESS;
         exit(0);
     }
 
@@ -167,17 +166,6 @@
     }
     return APR_SUCCESS;
 }
-#if 0
-static apr_status_t privileges_end_proc(void *data)
-{
-    /* FIXME
-     * The process exists only for the request, and was created
-     * on the request pool which is now being destroyed.
-     * Need to figure out what needs doing here.
-     */
-    exit(0);
-}
-#endif
 static int privileges_req(request_rec *r)
 {
     /* secure mode: fork a process to handle the request */
@@ -248,8 +236,6 @@
             return DONE;
         case APR_INCHILD:
             ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "In child!");
-//            apr_pool_cleanup_register(r->pool, r, privileges_end_proc,
-//                                      apr_pool_cleanup_null);
             break;  /* now we'll drop privileges in the child */
         default:
             ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
@@ -400,7 +386,6 @@
 static int privileges_init(apr_pool_t *pconf, apr_pool_t *plog,
                            apr_pool_t *ptemp)
 {
-#if 0
     /* refuse to work if the MPM is threaded */
     int threaded;
     int rv = ap_mpm_query(AP_MPMQ_IS_THREADED, &threaded);
@@ -415,7 +400,6 @@
                       "mod_privileges is not compatible with a threaded MPM.");
         return !OK;
     }
-#endif
     return OK;
 }
 static void privileges_hooks(apr_pool_t *pool)



Mime
View raw message