mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
b93666ebc1
According to cgroup v2 documentation [1]: > Freezing of the cgroup may take some time; when this action is > completed, the “frozen” value in the cgroup.events control file will > be updated to “1” and the corresponding notification will be issued. Implement polling of cgroup.events, waiting for "frozen 1" to appear. In case something goes wrong, limit the maximum number of retries and return "undefined" after some time (currently 10s). [1] https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>