summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-09 12:21:15 +0200
committerDaniel Lange <DLange@git.local>2022-05-09 12:21:15 +0200
commit2da8f71209d2d1c3bfe23f8a76ae4f965065e81f (patch)
treede0e281447c7d3f04b220056b176da3f5a6a5963
parent79db69c48da9c4ffa514e060d893da5ec401107b (diff)
parent51228b62392f09ab3db293071703b896401fd70c (diff)
Merge branch 'fix_running_containerized_for_lxc' of ilyam8/htop
-rw-r--r--linux/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Platform.c b/linux/Platform.c
index 775f9aee..d9c23394 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -1035,7 +1035,7 @@ bool Platform_init(void) {
char lineBuffer[256];
while (fgets(lineBuffer, sizeof(lineBuffer), fd)) {
// detect lxc or overlayfs and guess that this means we are running containerized
- if (String_startsWith(lineBuffer, "lxcfs ") || String_startsWith(lineBuffer, "overlay ")) {
+ if (String_startsWith(lineBuffer, "lxcfs /proc") || String_startsWith(lineBuffer, "overlay ")) {
Running_containerized = true;
break;
}

© 2014-2022 Faster IT GmbH | imprint | privacy policy