mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
1069e4e9da
Before this patch, setFreezer does - open/read/close (to check if the freezer is supported) - open/write/close (to set the value) - open/read/close (to check the value) Three opens is a bit excessive. Refactor to only open the file once: - open (to check if the freezer is supported) - write (to set the value) - seek/read (to check the value) - close Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>