]> granicus.if.org Git - apache/commitdiff
Releasing a semaphore you don't own isn't a fatal error.
authorBrian Havard <bjh@apache.org>
Mon, 19 Jul 1999 07:32:20 +0000 (07:32 +0000)
committerBrian Havard <bjh@apache.org>
Mon, 19 Jul 1999 07:32:20 +0000 (07:32 +0000)
Also update with latest hook.

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

server/mpm/spmt_os2/spmt_os2.c

index 7a6b39f783d5485f5cc71d1baeb37065ccc32020..ffcf030cc74b067e4a0951b978d6799d633d52dd 100644 (file)
@@ -72,6 +72,7 @@
 #include "iol_socket.h"
 
 #define INCL_DOS
+#define INCL_DOSERRORS
 #include <os2.h>
 #include <stdlib.h>
 
@@ -1759,7 +1760,7 @@ API_EXPORT(void) ap_thread_mutex_unlock(ap_thread_mutex *mtx)
 {
     ULONG rc;
     rc = DosReleaseMutexSem(mtx->mutex_handle);
-    ap_assert(rc == 0);
+    ap_assert(rc == 0 || rc == ERROR_NOT_OWNER);
 }
 
 API_EXPORT(void) ap_thread_mutex_destroy(ap_thread_mutex *mtx)
@@ -1806,6 +1807,5 @@ module MODULE_VAR_EXPORT mpm_spmt_os2_module = {
     NULL,                      /* check access */
     NULL,                      /* type_checker */
     NULL,                      /* pre-run fixups */
-    NULL,                      /* logger */
     NULL                       /* register hooks */
 };