mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11: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 {
|
bool isActive() const override {
|
||||||
#ifndef _WIN32
|
#ifdef __linux__
|
||||||
if (kill(pid, 0) == 0) {
|
if (kill(pid, 0) == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return errno != ESRCH;
|
return errno != ESRCH;
|
||||||
#else
|
#elif defined(_WIN32)
|
||||||
if (processHandle == nullptr) {
|
if (processHandle == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -281,6 +281,9 @@ public:
|
||||||
return exitCode == STILL_ACTIVE;
|
return exitCode == STILL_ACTIVE;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
// FIXME: completely implement SystemProcess for MacOS
|
||||||
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue