We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b889913 + 9feec59 commit efe1cebCopy full SHA for efe1ceb
src/libcrun/cgroup-systemd.c
@@ -1761,9 +1761,11 @@ enter_systemd_cgroup_scope (runtime_spec_schema_config_linux_resources *resource
1761
boolean_opts[i++] = "MemoryAccounting";
1762
if (resources->block_io)
1763
boolean_opts[i++] = "IOAccounting";
1764
- if (resources->pids)
1765
- boolean_opts[i++] = "TasksAccounting";
1766
}
+ /* Always enable TasksAccounting to ensure the pids controller is available.
+ * This allows container managers to read pids.current even when no explicit
1767
+ * pids limit is set. */
1768
+ boolean_opts[i++] = "TasksAccounting";
1769
boolean_opts[i++] = NULL;
1770
1771
ret = open_sd_bus_connection (&bus, err);
0 commit comments