]> granicus.if.org Git - apache/commitdiff
Added a warning to the AcceptMutex directive documentation indicating
authorPaul J. Reder <rederpj@apache.org>
Wed, 25 Jun 2003 17:25:34 +0000 (17:25 +0000)
committerPaul J. Reder <rederpj@apache.org>
Wed, 25 Jun 2003 17:25:34 +0000 (17:25 +0000)
that the pthread option can result in a non-responsive server on
systems that can't reclaim a locked mutex from the segfaulted child
holding it. [Paul J. Reder]

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

docs/manual/mod/mpm_common.xml

index c007c1f3894a298289cb063064c2b9ec5de7d064..ac6ba7da419d755c0b373f984f96d8b23b8fa232 100644 (file)
@@ -62,6 +62,22 @@ accepting requests on network sockets</description>
     >LogLevel</directive> to <code>debug</code>. Then the default <directive
     >AcceptMutex</directive> will be written into the <directive
     module="core">ErrorLog</directive>.</p>
+
+  <note type="warning"><strong>Warning:</strong>
+     <p>On most systems, when the <code>pthread</code> option
+     is selected, if a child process terminates abnormally
+     while holding the <code>AcceptCntl</code> mutex the
+     server will stop responding to requests. When this
+     occurs, the server will require a manual restart to
+     recover.</p>
+     <p>Solaris is a notable exception as it provides a
+     mechanism, used by Apache, which usually allows the
+     mutex to be recovered after a child process terminates
+     abnormally while holding a mutex.</p>
+     <p>If your system implements the
+     <code>pthread_mutexattr_setrobust_np()</code> function,
+     you may be able to use the <code>pthread</code> option safely.</p>
+  </note>
 </usage>
 </directivesynopsis>