From 0ea56294f179d7e93e06a575af73837eb0a8607c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 13 Jul 2012 11:57:11 -0700 Subject: [PATCH] Fix darwin sem_open() names Must begin with '/' --- libraries/libmdb/mdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index fc889ce7ad..44365337c7 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -2922,7 +2922,7 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl) val.mv_data = &idbuf; val.mv_size = sizeof(idbuf); mdb_hash_hex(&val, hexbuf); - sprintf(env->me_txns->mti_rmname, "MDBr%s", hexbuf); + sprintf(env->me_txns->mti_rmname, "/MDBr%s", hexbuf); if (sem_unlink(env->me_txns->mti_rmname)) { rc = ErrCode(); if (rc != ENOENT && rc != EINVAL) @@ -2933,7 +2933,7 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl) rc = ErrCode(); goto fail; } - sprintf(env->me_txns->mti_wmname, "MDBw%s", hexbuf); + sprintf(env->me_txns->mti_wmname, "/MDBw%s", hexbuf); if (sem_unlink(env->me_txns->mti_wmname)) { rc = ErrCode(); if (rc != ENOENT && rc != EINVAL) -- 2.39.5