Fix the following issue:
071-sudo-set_default_systemd_cgroup.py - cgroup_delete_cgroup failed: 50016
Some older version of Kernel/Python combination, requires few jiffies to
sync the cgroup.procs list of process. Fix it by introducing 0.5 second
delay, before removing the cgroup.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
cause = '\n'.join(filter(None, [cause, tmp_cause]))
Process.kill(config, pid)
+
+ # Allow the cgroup sync, on killed pid
+ time.sleep(0.5)
+
cg.delete()
#