From: Brian Havard Date: Mon, 19 Jul 1999 07:32:20 +0000 (+0000) Subject: Releasing a semaphore you don't own isn't a fatal error. X-Git-Tag: 1.3.7~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af76bd040acb98b0213ad049b7608a508f6c52d8;p=apache Releasing a semaphore you don't own isn't a fatal error. Also update with latest hook. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83466 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/spmt_os2/spmt_os2.c b/server/mpm/spmt_os2/spmt_os2.c index 7a6b39f783..ffcf030cc7 100644 --- a/server/mpm/spmt_os2/spmt_os2.c +++ b/server/mpm/spmt_os2/spmt_os2.c @@ -72,6 +72,7 @@ #include "iol_socket.h" #define INCL_DOS +#define INCL_DOSERRORS #include #include @@ -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 */ };