Skip to content

Commit 6f3b1d2

Browse files
committed
fixup! Handling Pausing from freezer state
Check for a missing "freezer" key in the cgroup paths. Signed-off-by: W. Trevor King <wking@tremily.us>
1 parent c07c601 commit 6f3b1d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcontainer/container_linux.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ func (c *linuxContainer) updateState(process parentProcess) error {
768768
}
769769

770770
func (c *linuxContainer) checkFreezer() (Status, error) {
771-
path := c.cgroupManager.GetPaths()["freezer"]
771+
path, ok := c.cgroupManager.GetPaths()["freezer"]
772+
if (!ok) {
773+
return Running, nil
774+
}
772775
contents, err := ioutil.ReadFile(filepath.Join(path, "freezer.state"))
773776
if err != nil {
774777
if os.IsNotExist(err) {

0 commit comments

Comments
 (0)