Merge "Disable libguestfs' default atexit handlers."

This commit is contained in:
Jenkins 2013-12-31 22:43:03 +00:00 committed by Gerrit Code Review
commit 79051f6682
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
class GuestFS(object):
def __init__(self):
def __init__(self, close_on_exit=True):
self.drives = []
self.running = False
self.closed = False

View File

@ -108,7 +108,7 @@ class VFSGuestFS(vfs.VFS):
def setup(self):
LOG.debug(_("Setting up appliance for %(imgfile)s %(imgfmt)s") %
{'imgfile': self.imgfile, 'imgfmt': self.imgfmt})
self.handle = tpool.Proxy(guestfs.GuestFS())
self.handle = tpool.Proxy(guestfs.GuestFS(close_on_exit=False))
try:
self.handle.add_drive_opts(self.imgfile, format=self.imgfmt)