diff options
author | randomdan <randomdan@localhost> | 2014-03-21 19:26:38 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-03-21 19:26:38 +0000 |
commit | b00b006a428fee7fdf7f46bc4d7d45e214825833 (patch) | |
tree | 65a9f11f8161a79db9e3c96bec8378a34129b3e6 | |
parent | Remove guidmap, not used anymore (diff) | |
download | netfs-b00b006a428fee7fdf7f46bc4d7d45e214825833.tar.bz2 netfs-b00b006a428fee7fdf7f46bc4d7d45e214825833.tar.xz netfs-b00b006a428fee7fdf7f46bc4d7d45e214825833.zip |
Close remaining open file handles on exit
-rw-r--r-- | netfs/fuse/fuse.cpp | 6 |
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(); |