]> git.sur5r.net Git - openldap/commit
ITS#7364 Always sem_unlink() in mdb_env_open().
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 17 Sep 2012 13:42:15 +0000 (15:42 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 17 Sep 2012 13:42:15 +0000 (15:42 +0200)
commitc760e536ec1b9fed01b4d8e8d884533dceec397d
tree2b5a0988ce4b27fb9460925dc144fad0f6aa2fda
parent31be24896b455e45eaf4e3739299a19a29979183
ITS#7364 Always sem_unlink() in mdb_env_open().

Drop the sem_unlink() error checks, which could prevent the 2nd
unlink.  Instead use O_EXCL in sem_open().

This makes "open+close the database" the API for trying to clean
away the old semaphores, if they were left behind by a previous run.
libraries/libmdb/mdb.c