We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b73aef5 commit c07c601Copy full SHA for c07c601
libcontainer/container_linux.go
@@ -769,13 +769,11 @@ func (c *linuxContainer) updateState(process parentProcess) error {
769
770
func (c *linuxContainer) checkFreezer() (Status, error) {
771
path := c.cgroupManager.GetPaths()["freezer"]
772
- if _, err := os.Stat(path); err != nil {
+ contents, err := ioutil.ReadFile(filepath.Join(path, "freezer.state"))
773
+ if err != nil {
774
if os.IsNotExist(err) {
775
return Running, nil
776
}
- }
777
- contents, err := ioutil.ReadFile(filepath.Join(path, "freezer.state"))
778
- if err != nil {
779
return 0, newSystemError(err)
780
781
freezerstate := string(contents)
0 commit comments