diff options
| author | Martin Ridgers <[email protected]> | 2021-11-09 16:52:55 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-09 16:53:10 +0100 |
| commit | 7fbdbc680476e2899c7964345a4dbb6602884633 (patch) | |
| tree | a1bfc3a71e4c8995da6227d5c678bbd604a452af /zencore/thread.cpp | |
| parent | Implemented ProcessHandle::Terminate() for Linux (diff) | |
| download | zen-7fbdbc680476e2899c7964345a4dbb6602884633.tar.xz zen-7fbdbc680476e2899c7964345a4dbb6602884633.zip | |
ProcessHandle::Reset() for Linux
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 3 |
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; } } |