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 {
#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
}