Skip to content

Commit

Permalink
Merge pull request moby#4 from lifanov/freebsd-compat
Browse files Browse the repository at this point in the history
Hide unmount failures from user and to Debug.
  • Loading branch information
kvasdopil committed Jul 1, 2015
2 parents 582db78 + db8e197 commit b1c37d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions daemon/execdriver/jail/driver.go
Expand Up @@ -186,8 +186,12 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
if err := exec.Command("umount", root+"/dev").Run(); err != nil {
logrus.Debugf("umount %s failed: %s", c.ID, err)
}
exec.Command("umount", root+"/proc").Run()
exec.Command("umount", root+"/sys").Run()
if err := exec.Command("umount", root+"/proc").Run(); err != nil {
logrus.Debugf("umount %s failed: %s", c.ID, err)
}
if err := exec.Command("umount", root+"/sys").Run(); err != nil {
logrus.Debugf("umount %s failed: %s", c.ID, err)
}

return execdriver.ExitStatus{ExitCode: exitCode, OOMKilled: false}, waitErr
}
Expand Down

0 comments on commit b1c37d2

Please sign in to comment.