From 5c8e91b07b7539ff05299ca1639cedfd5e120111 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 19 Jun 2024 16:50:11 +0200 Subject: [PATCH] =?UTF-8?q?Dozens=20of=20hours=20of=20debugging,=20yet=20o?= =?UTF-8?q?nly=201=20character=20of=20changed=20code.=20=F0=9F=98=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shared_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index fdf76009..0d2a9810 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -330,7 +330,7 @@ namespace IPC{ } return; } - if (handle > 0 && handle < 3){ + if (handle >= 0 && handle < 3){ int tmpHandle = fcntl(handle, F_DUPFD, 3); if (tmpHandle >= 3){ DONTEVEN_MSG("Remapped handle for page %s from %d to %d!", name.c_str(), handle, tmpHandle);