]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8844 use getpid() in mdb_env_close0()
authorHoward Chu <hyc@openldap.org>
Wed, 2 May 2018 16:05:29 +0000 (17:05 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Oct 2020 12:17:18 +0000 (13:17 +0100)
libraries/liblmdb/mdb.c

index 9782de363db845f115103fa218dcc85f4ea88574..be4161013a2bb65c1abfcdcfc45d421ecc9563f8 100644 (file)
@@ -5997,7 +5997,7 @@ mdb_env_close_active(MDB_env *env, int excl)
        if (env->me_fd != INVALID_HANDLE_VALUE)
                (void) close(env->me_fd);
        if (env->me_txns) {
-               MDB_PID_T pid = env->me_pid;
+               MDB_PID_T pid = getpid();
                /* Clearing readers is done in this function because
                 * me_txkey with its destructor must be disabled first.
                 *