[CRIU] [PATCH 02/14] mntns: close_proc before clean up mounts
Andrew Vagin
avagin at parallels.com
Fri Jan 11 06:10:30 EST 2013
On Fri, Jan 11, 2013 at 02:32:31PM +0400, Pavel Emelyanov wrote:
> On 01/11/2013 01:22 PM, Andrey Vagin wrote:
> > Because /proc could not be umounted, if any its file is opened.
>
> How does it work now?
I want to move close_old_fds before this code, but
it opens /proc/...
>
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> > ---
> > mount.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/mount.c b/mount.c
> > index 1069928..843e3bb 100644
> > --- a/mount.c
> > +++ b/mount.c
> > @@ -688,6 +688,8 @@ int prepare_mnt_ns(int ns_pid)
> >
> > pr_info("Restoring mount namespace\n");
> >
> > + close_proc();
> > +
> > /*
> > * The new mount namespace is filled with the mountpoint
> > * clones from the original one. We have to umount them
> >
>
>
More information about the CRIU
mailing list