This is kind of a fire and forget situation, but should be good enough.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
ERROR:
// Destroy the temporary cgroup (if any)
if (ctx.cgroup) {
-#if 0
- // XXX this is currently disabled because it overwrites r
// Read cgroup stats
- r = pakfire_cgroup_stat(ctx.cgroup, &ctx.cgroup_stats);
- if (r) {
- ERROR(jail->pakfire, "Could not read cgroup stats: %m\n");
- } else {
- pakfire_cgroup_stat_dump(ctx.cgroup, &ctx.cgroup_stats);
- }
-#endif
-
+ pakfire_cgroup_stat(ctx.cgroup, &ctx.cgroup_stats);
+ pakfire_cgroup_stat_dump(ctx.cgroup, &ctx.cgroup_stats);
pakfire_cgroup_destroy(ctx.cgroup);
pakfire_cgroup_unref(ctx.cgroup);
}