mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Merge branch 'fix_running_containerized_for_lxc' of ilyam8/htop
This commit is contained in:
commit
2da8f71209
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user