From 3f0c172a601574454a8f8009f3b45e89aa120475 Mon Sep 17 00:00:00 2001 From: er-azh <80633916+er-azh@users.noreply.github.com> Date: Sat, 26 Mar 2022 15:48:12 +0430 Subject: [PATCH] Linux: fix crash in LXD --- linux/LinuxProcessList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index b0e6f03a..3002e829 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -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"))