From a3b8f16f5d4bc15471f237b15df6ef0e5572aec3 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 16 Nov 2021 16:15:29 +0100 Subject: Adding missing check to see if the process is the fork or not --- zencore/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 864870f10..72148f57d 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -772,7 +772,7 @@ CreateProcResult CreateProc( { ThrowLastError("Failed to fork a new child process"); } - else + else if (ChildPid == 0) { if (Options.WorkingDirectory != nullptr) { -- cgit v1.2.3