]> granicus.if.org Git - apache/commitdiff
Restored the permission setting for the accept mutex (which
authorBrian Pane <brianp@apache.org>
Sat, 16 Feb 2002 22:04:23 +0000 (22:04 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 16 Feb 2002 22:04:23 +0000 (22:04 +0000)
was lost in my previous commit to change to the new lock API)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93446 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index e9eb4873f6497a56d6b2b1a21be5833818683fbd..d456ec31fb3104c73016d01b46d4eea9eda161db 100644 (file)
@@ -958,6 +958,20 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
         return 1;
     }
 
+#if APR_USE_SYSVSEM_SERIALIZE
+    if (ap_accept_lock_mech == APR_LOCK_DEFAULT || 
+        ap_accept_lock_mech == APR_LOCK_SYSVSEM) {
+#else
+    if (ap_accept_lock_mech == APR_LOCK_SYSVSEM) {
+#endif
+        rv = unixd_set_proc_mutex_perms(accept_mutex);
+        if (rv != APR_SUCCESS) {
+            ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s,
+                         "Couldn't set permissions on cross-process lock");
+            return 1;
+        }
+    }
+
     if (!is_graceful) {
         if (ap_run_pre_mpm(pconf, SB_SHARED) != OK) {
             return 1;