diff options
| author | Stefan Boberg <[email protected]> | 2024-03-21 10:50:44 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-03-21 10:50:44 +0100 |
| commit | d7f422f02976b8d48cce533f9292400f2f85a141 (patch) | |
| tree | 74032ff63b5308ef6012526959ebd0fcde7ff4ba /src/zenserver/zenserver.cpp | |
| parent | 5.4.2-pre5 (diff) | |
| download | zen-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.cpp | 5 |
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()) { |