You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Havard <br...@kheldar.apana.org.au> on 1998/08/07 17:30:45 UTC
[PATCH] OS/2 mutex semaphore tweak
The following patch is needed to make the newly added OS/2 mutex semaphores
work right. Turns out that closing an owned semaphore gives an error so we
must ensure the semaphore is released before closing it in the cleanup.
Index: main/http_main.c
===================================================================
RCS file: /cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.379
diff -u -r1.379 http_main.c
--- http_main.c 1998/08/06 17:30:29 1.379
+++ http_main.c 1998/08/07 15:22:54
@@ -845,6 +845,7 @@
static void accept_mutex_cleanup(void *foo)
{
+ DosReleaseMutexSem(lock_sem);
DosCloseMutexSem(lock_sem);
}
--
______________________________________________________________________________
| Brian Havard | "He is not the messiah! |
| brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian |
------------------------------------------------------------------------------