diff options
| author | Martin Ridgers <[email protected]> | 2021-11-16 16:15:29 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-16 16:15:29 +0100 |
| commit | a3b8f16f5d4bc15471f237b15df6ef0e5572aec3 (patch) | |
| tree | 0c77927ebcc19684c972b6384ebf933165db1c39 /zencore/thread.cpp | |
| parent | SOCK_CLOEXEC isn't a valid option for AF_UNIX-type sockets (diff) | |
| download | zen-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.cpp | 2 |
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) { |