summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-03-21 19:26:38 +0000
committerrandomdan <randomdan@localhost>2014-03-21 19:26:38 +0000
commitb00b006a428fee7fdf7f46bc4d7d45e214825833 (patch)
tree65a9f11f8161a79db9e3c96bec8378a34129b3e6
parentRemove guidmap, not used anymore (diff)
downloadnetfs-b00b006a428fee7fdf7f46bc4d7d45e214825833.tar.bz2
netfs-b00b006a428fee7fdf7f46bc4d7d45e214825833.tar.xz
netfs-b00b006a428fee7fdf7f46bc4d7d45e214825833.zip
Close remaining open file handles on exit
-rw-r--r--netfs/fuse/fuse.cpp6
1 files changed, 6 insertions, 0 deletions
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();