From 3b01bbbc67389b63e6623da99d397283729e70e7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 2 May 2018 17:05:29 +0100 Subject: [PATCH] ITS#8844 use getpid() in mdb_env_close0() --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index d9e7c5e..0662f2d 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5063,7 +5063,7 @@ mdb_env_close0(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. *