aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-09 16:52:55 +0100
committerMartin Ridgers <[email protected]>2021-11-09 16:53:10 +0100
commit7fbdbc680476e2899c7964345a4dbb6602884633 (patch)
treea1bfc3a71e4c8995da6227d5c678bbd604a452af /zencore/thread.cpp
parentImplemented ProcessHandle::Terminate() for Linux (diff)
downloadzen-7fbdbc680476e2899c7964345a4dbb6602884633.tar.xz
zen-7fbdbc680476e2899c7964345a4dbb6602884633.zip
ProcessHandle::Reset() for Linux
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 452ec6079..ba26fef36 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -400,8 +400,11 @@ ProcessHandle::Reset()
{
if (IsValid())
{
+#if ZEN_PLATFORM_WINDOWS
CloseHandle(m_ProcessHandle);
+#endif
m_ProcessHandle = nullptr;
+ m_Pid = 0;
}
}