aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-16 16:15:29 +0100
committerMartin Ridgers <[email protected]>2021-11-16 16:15:29 +0100
commita3b8f16f5d4bc15471f237b15df6ef0e5572aec3 (patch)
tree0c77927ebcc19684c972b6384ebf933165db1c39 /zencore/thread.cpp
parentSOCK_CLOEXEC isn't a valid option for AF_UNIX-type sockets (diff)
downloadzen-a3b8f16f5d4bc15471f237b15df6ef0e5572aec3.tar.xz
zen-a3b8f16f5d4bc15471f237b15df6ef0e5572aec3.zip
Adding missing check to see if the process is the fork or not
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{