diff options
author | er-azh <80633916+er-azh@users.noreply.github.com> | 2022-03-26 15:48:12 +0430 |
---|---|---|
committer | er-azh <80633916+er-azh@users.noreply.github.com> | 2022-03-26 15:48:12 +0430 |
commit | 3f0c172a601574454a8f8009f3b45e89aa120475 (patch) | |
tree | 8298be85352cb13f4a5ea08bdc69c608ae629733 | |
parent | a2ca7583a9ba2e57eb9e9316aad52c9248aae092 (diff) |
Linux: fix crash in LXD
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
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")) |