From b00b006a428fee7fdf7f46bc4d7d45e214825833 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 21 Mar 2014 19:26:38 +0000 Subject: Close remaining open file handles on exit --- netfs/fuse/fuse.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netfs/fuse/fuse.cpp b/netfs/fuse/fuse.cpp index e221cfd..aac2f78 100644 --- a/netfs/fuse/fuse.cpp +++ b/netfs/fuse/fuse.cpp @@ -13,6 +13,12 @@ NetFS::FuseApp::FuseApp(int & argc, char ** argv) : NetFS::FuseApp::~FuseApp() { + BOOST_FOREACH(const OpenDirs::value_type & of, openDirs) { + of.second->remote->close(); + } + BOOST_FOREACH(const OpenFiles::value_type & of, openFiles) { + of.second->remote->close(); + } volume->disconnect(); if (ic) { ic->destroy(); -- cgit v1.2.3