mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix the fix
This commit is contained in:
parent
9de8331692
commit
9fe42edca3
1 changed files with 5 additions and 2 deletions
|
|
@ -267,12 +267,12 @@ public:
|
|||
}
|
||||
|
||||
bool isActive() const override {
|
||||
#ifndef _WIN32
|
||||
#ifdef __linux__
|
||||
if (kill(pid, 0) == 0) {
|
||||
return true;
|
||||
}
|
||||
return errno != ESRCH;
|
||||
#else
|
||||
#elif defined(_WIN32)
|
||||
if (processHandle == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -281,6 +281,9 @@ public:
|
|||
return exitCode == STILL_ACTIVE;
|
||||
}
|
||||
return false;
|
||||
#elif defined(__APPLE__)
|
||||
// FIXME: completely implement SystemProcess for MacOS
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue