Skip to content

Commit

Permalink
merge branch 'pr-2133'
Browse files Browse the repository at this point in the history
Julia Nedialkova (1):
  Handle ENODEV when accessing the freezer.state file

LGTMs: @crosbymichael @cyphar
Closes #2133
  • Loading branch information
cyphar committed Jan 16, 2020
2 parents 709377c + e63b797 commit f6fb7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/container_linux.go
Expand Up @@ -1827,7 +1827,7 @@ func (c *linuxContainer) isPaused() (bool, error) {
data, err := ioutil.ReadFile(filepath.Join(fcg, filename))
if err != nil {
// If freezer cgroup is not mounted, the container would just be not paused.
if os.IsNotExist(err) {
if os.IsNotExist(err) || err == syscall.ENODEV {
return false, nil
}
return false, newSystemErrorWithCause(err, "checking if container is paused")
Expand Down

0 comments on commit f6fb7a0

Please sign in to comment.