]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: Only stat the cgroup tasks file if it's a v1 mount
authorTom Hromatka <tom.hromatka@oracle.com>
Mon, 11 May 2020 02:16:42 +0000 (02:16 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 16 Jun 2020 14:43:30 +0000 (08:43 -0600)
commite09283cb138aa1d97079b936330230fc0ed7a730
treee242770bb5be2656db742c7475f41ffc25c14739
parent3aac98892ea54c2e9f2b1fcf9464c195c4ae6f3b
api.c: Only stat the cgroup tasks file if it's a v1 mount

In cgroup_get_cgroup(), stat should only be called on the cgroup's
task file if the cgroup is a v1 mount.  v2 mounts don't have a
tasks file.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Dhaval Giani <dhaval.giani@oracle.com>
src/api.c