fix the fix

This commit is contained in:
MihailRis 2026-09-04 00:09:31 +03:00
parent 9de8331692
commit 9fe42edca3

View file

@ -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
} }