Skip to content

Commit

Permalink
Merge pull request containers#3960 from mheon/ignore_umount_enoent
Browse files Browse the repository at this point in the history
Ignore ENOENT on umount of SHM
  • Loading branch information
openshift-merge-robot authored Sep 6, 2019
2 parents 575ffee + 77f9234 commit 290def5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpod/container_internal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func (c *Container) mountSHM(shmOptions string) error {

func (c *Container) unmountSHM(mount string) error {
if err := unix.Unmount(mount, 0); err != nil {
if err != syscall.EINVAL {
if err != syscall.EINVAL && err != syscall.ENOENT {
return errors.Wrapf(err, "error unmounting container %s SHM mount %s", c.ID(), mount)
}
// If it's just an EINVAL, debug logs only
// If it's just an EINVAL or ENOENT, debug logs only
logrus.Debugf("container %s failed to unmount %s : %v", c.ID(), mount, err)
}
return nil
Expand Down

0 comments on commit 290def5

Please sign in to comment.