diff options
| author | Per Larsson <[email protected]> | 2022-03-19 10:41:08 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-03-19 10:41:08 +0100 |
| commit | 703c252710cdae35a35be700fade144e994777c0 (patch) | |
| tree | 03268a46ea32553c4777ee30cc617f140665938a /zencore/thread.cpp | |
| parent | Minor cleanup. (diff) | |
| parent | Suppress C4305 in third party includes (diff) | |
| download | zen-703c252710cdae35a35be700fade144e994777c0.tar.xz zen-703c252710cdae35a35be700fade144e994777c0.zip | |
Merge branch 'main' into streamapi
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 7b1396f5f..c2ecc8d72 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -75,7 +75,7 @@ SetNameInternal(DWORD thread_id, const char* name) #endif #if ZEN_PLATFORM_LINUX -const bool bNoZombieChildren = [] () { +const bool bNoZombieChildren = []() { // When a child process exits it is put into a zombie state until the parent // collects its result. This doesn't fit the Windows-like model that Zen uses // where there is a less strict familial model and no zombification. Ignoring @@ -87,7 +87,7 @@ const bool bNoZombieChildren = [] () { Action.sa_handler = SIG_IGN; sigaction(SIGCHLD, &Action, nullptr); return true; -} (); +}(); #endif void @@ -647,10 +647,10 @@ ProcessHandle::Wait(int TimeoutMs) timespec SleepTime = {0, SleepMs * 1000 * 1000}; for (int i = 0;; i += SleepMs) { -#if ZEN_PLATFORM_MAC +# if ZEN_PLATFORM_MAC int WaitState = 0; waitpid(m_Pid, &WaitState, WNOHANG | WCONTINUED | WUNTRACED); -#endif +# endif if (kill(m_Pid, 0) < 0) { |