httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject [PATCH] OS/2 mutex semaphore tweak
Date Fri, 07 Aug 1998 15:30:45 GMT
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 |
 ------------------------------------------------------------------------------


Mime
View raw message