diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-21 01:32:59 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-21 01:32:59 +0000 |
commit | 904920d33cf718a338fb39d8aa5615a492b95818 (patch) | |
tree | ae7fd6fd6fe060bb45f48e358820e13dd7433782 /locks | |
parent | 54862c35c25ae581613eff71cfaa5246d8a80509 (diff) | |
download | libapr-904920d33cf718a338fb39d8aa5615a492b95818.tar.gz |
Fix the cleanup of SYSV semaphores. This way we don't leave sems lying
around forever.
Submitted by: Jeff Trawick
Reviewed by: Ryan Bloom
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/unix/crossproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locks/unix/crossproc.c b/locks/unix/crossproc.c index a50a5693a..38bee91f8 100644 --- a/locks/unix/crossproc.c +++ b/locks/unix/crossproc.c @@ -74,7 +74,7 @@ ap_status_t lock_cleanup(void *lock_) struct lock_t *lock=lock_; union semun ick; - if (lock->curr_locked == 1) { + if (lock->curr_interproc != -1) { ick.val = 0; semctl(lock->interproc, 0, IPC_RMID, ick); } |