Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #963 from running99/master
Browse files Browse the repository at this point in the history
container: Use lazy unmount
  • Loading branch information
caoruidong authored Dec 26, 2018
2 parents 2b75f44 + c099be5 commit 174e0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (c *Container) unmountHostMounts() error {
span, _ := c.trace("unmount")
span.SetTag("host-path", m.HostPath)

if err := syscall.Unmount(m.HostPath, 0); err != nil {
if err := syscall.Unmount(m.HostPath, syscall.MNT_DETACH); err != nil {
c.Logger().WithFields(logrus.Fields{
"host-path": m.HostPath,
"error": err,
Expand Down

0 comments on commit 174e0c9

Please sign in to comment.