mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
fix SystemProcess::isActive macos warning
This commit is contained in:
parent
c2a77509f7
commit
9de8331692
1 changed files with 2 additions and 2 deletions
|
|
@ -267,12 +267,12 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isActive() const override {
|
bool isActive() const override {
|
||||||
#ifdef __linux__
|
#ifndef _WIN32
|
||||||
if (kill(pid, 0) == 0) {
|
if (kill(pid, 0) == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return errno != ESRCH;
|
return errno != ESRCH;
|
||||||
#elif defined(_WIN32)
|
#else
|
||||||
if (processHandle == nullptr) {
|
if (processHandle == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue