cgroup-util: drop now unused cg_ns_supported()

This commit is contained in:
Mike Yuan
2025-04-21 16:54:37 +02:00
parent e857964b0f
commit 497e607ca0
2 changed files with 0 additions and 14 deletions
-13
View File
@@ -241,19 +241,6 @@ int cg_read_event(
}
}
bool cg_ns_supported(void) {
static thread_local int supported = -1;
if (supported >= 0)
return supported;
if (access("/proc/self/ns/cgroup", F_OK) >= 0)
return (supported = true);
if (errno != ENOENT)
log_debug_errno(errno, "Failed to check whether /proc/self/ns/cgroup is available, assuming not: %m");
return (supported = false);
}
bool cg_kill_supported(void) {
static thread_local int supported = -1;