Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
"""
super(FuseMount, self).teardown()
- self.umount()
-
if self.fuse_daemon and not self.fuse_daemon.finished:
self.fuse_daemon.stdin.close()
try:
"""
assert self.is_mounted()
- def teardown(self):
- super(KernelMount, self).teardown()
- if self.is_mounted():
- self.umount()
-
def _get_debug_dir(self):
"""
Get the debugfs folder for this mount
log.info("Terminating background process")
self.kill_background()
+ if self.is_mounted():
+ self.umount()
+
def _kill_background(self, p):
if p.stdin:
p.stdin.close()