From dfcd652e5cface6ee744e6aaf302ff03307de083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Thu, 21 Mar 2024 13:22:33 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=BD=D0=B5=20=D0=B2=D0=B7=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B8=D0=BC=20`MDBX=5FFATAL=5FERROR`=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=B5-=D0=B0=D0=BA=D1=82=D0=B8=D0=B2=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D1=81=D1=80=D0=B5=D0=B4=D1=8B=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B5=20`MD?= =?UTF-8?q?BX=5FENV=5FCHECKPID`=20(backport).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 92b3d565..101abfae 100644 --- a/src/core.c +++ b/src/core.c @@ -8274,7 +8274,7 @@ static __inline int check_env(const MDBX_env *env, const bool wanna_active) { if (wanna_active) { #if MDBX_ENV_CHECKPID - if (unlikely(env->me_pid != osal_getpid())) { + if (unlikely(env->me_pid != osal_getpid()) && env->me_pid) { ((MDBX_env *)env)->me_flags |= MDBX_FATAL_ERROR; return MDBX_PANIC; }