Linux: fix crash in LXD

This commit is contained in:
er-azh 2022-03-26 15:48:12 +04:30
parent a2ca7583a9
commit 3f0c172a60
No known key found for this signature in database
GPG Key ID: 933E21B9BA43FAAB

View File

@ -188,7 +188,7 @@ static void LinuxProcessList_updateCPUcount(ProcessList* super) {
const struct dirent* entry;
while ((entry = readdir(dir)) != NULL) {
if (entry->d_type != DT_DIR)
if (entry->d_type != DT_DIR && entry->d_type != DT_UNKNOWN)
continue;
if (!String_startsWith(entry->d_name, "cpu"))