Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/6a5d41942e56bcac0140dd3b69ac88f62e99d99e
>---------------------------------------------------------------
commit 6a5d41942e56bcac0140dd3b69ac88f62e99d99e
Author: Alex Alabuzhev <
alab...@gmail.com>
Date: Mon Jul 6 17:42:19 2026 +0100
gh-1115: workaround for 'invalid handle' error
>---------------------------------------------------------------
6a5d41942e56bcac0140dd3b69ac88f62e99d99e
far/execute.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/far/execute.cpp b/far/execute.cpp
index d5a33c501..5b61e5a13 100644
--- a/far/execute.cpp
+++ b/far/execute.cpp
@@ -783,7 +783,10 @@ static bool execute_impl(
return false;
os::handle{ pi.hThread };
- after_process_creation(Info, os::handle(pi.hProcess), Info.WaitMode, ConsoleSize, ConsoleWindowRect, UsingComspec);
+
+ if (pi.hProcess)
+ after_process_creation(Info, os::handle(pi.hProcess), Info.WaitMode, ConsoleSize, ConsoleWindowRect, UsingComspec);
+
return true;
};