Init "locked" flag for SysV semaphores

ntdll
Hallvard Furuseth 9 years ago
parent c367c1f696
commit 53a0fdf1be
  1. 2
      libraries/liblmdb/mdb.c

@ -4960,6 +4960,8 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
if (semctl(semid, 0, SETALL, semu) < 0) if (semctl(semid, 0, SETALL, semu) < 0)
goto fail_errno; goto fail_errno;
env->me_txns->mti_semid = semid; env->me_txns->mti_semid = semid;
env->me_txns->mti_rlocked = 0;
env->me_txns->mti_wlocked = 0;
#else /* MDB_USE_POSIX_MUTEX: */ #else /* MDB_USE_POSIX_MUTEX: */
pthread_mutexattr_t mattr; pthread_mutexattr_t mattr;

Loading…
Cancel
Save