aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-03-21 10:50:44 +0100
committerGitHub Enterprise <[email protected]>2024-03-21 10:50:44 +0100
commitd7f422f02976b8d48cce533f9292400f2f85a141 (patch)
tree74032ff63b5308ef6012526959ebd0fcde7ff4ba /src/zenserver/zenserver.cpp
parent5.4.2-pre5 (diff)
downloadzen-d7f422f02976b8d48cce533f9292400f2f85a141.tar.xz
zen-d7f422f02976b8d48cce533f9292400f2f85a141.zip
improved process monitoring behaviour with invalid pids (#16)
Diffstat (limited to 'src/zenserver/zenserver.cpp')
-rw-r--r--src/zenserver/zenserver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index d8176678d..daec743a0 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -124,8 +124,9 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen
if (ParentPid)
{
- ProcessHandle OwnerProcess;
- OwnerProcess.Initialize(ParentPid);
+ std::error_code Ec;
+ ProcessHandle OwnerProcess;
+ OwnerProcess.Initialize(ParentPid, /* out */ Ec);
if (!OwnerProcess.IsValid())
{