From e4414ab41e843da2954fe3fd632a877c55f3b2ae Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Wed, 14 Aug 2013 22:06:01 -0400 Subject: [PATCH] fix chroot_lock reference Signed-off-by: Gui Chen --- mic/chroot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mic/chroot.py b/mic/chroot.py index 342b5e8..4e4120d 100644 --- a/mic/chroot.py +++ b/mic/chroot.py @@ -222,6 +222,8 @@ def cleanup_mounts(chrootdir): def cleanup_chrootenv(chrootdir, bindmounts=None, globalmounts=()): """ clean up chroot environment """ + global chroot_lock + # kill processes kill_proc_inchroot(chrootdir) # clean mtab -- 2.7.4