rbb 99/10/12 06:09:31
Modified: src/lib/apr/locks/unix intraproc.c
Log:
Fix some bugs in my last commit, and a few of the bugs I didn't notice
when I went through the original patch. Whoops.
Revision Changes Path
1.5 +4 -5 apache-2.0/src/lib/apr/locks/unix/intraproc.c
Index: intraproc.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/unix/intraproc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- intraproc.c 1999/10/12 12:55:11 1.4
+++ intraproc.c 1999/10/12 13:09:31 1.5
@@ -66,6 +66,7 @@
if (lock->curr_locked == 1) {
return pthread_mutex_unlock(lock->intraproc);
}
+ return APR_SUCCESS;
}
ap_status_t create_intra_lock(struct lock_t *new)
@@ -107,13 +108,11 @@
ap_status_t unlock_intra(struct lock_t *lock)
{
- ap_status_t stat;
+ ap_status_t status;
- if ((stat = pthread_mutex_unlock(lock->intraproc)) == 0) {
- return stat;
- }
+ status = pthread_mutex_unlock(lock->intraproc);
lock->curr_locked = 0;
- return APR_SUCCESS;
+ return status;
}
ap_status_t destroy_intra_lock(struct lock_t *lock)