Fixed bug with CLion management detection (where Bloom failed to detect CLion 2023.1 managing its process)
This commit is contained in:
@@ -59,9 +59,9 @@ namespace Bloom::Services
|
|||||||
auto pid = processInfo->ppid;
|
auto pid = processInfo->ppid;
|
||||||
|
|
||||||
while (const auto processInfo = ProcessService::getProcessInfo(pid)) {
|
while (const auto processInfo = ProcessService::getProcessInfo(pid)) {
|
||||||
const auto commandLine = std::string(processInfo->cmd);
|
const auto commandLine = std::string(*(processInfo->cmdline));
|
||||||
|
|
||||||
if (commandLine.find("clion.sh") != std::string::npos) {
|
if (commandLine.find("clion") != std::string::npos) {
|
||||||
cachedResultsByProcessId[*processId] = true;
|
cachedResultsByProcessId[*processId] = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user