loolwsd/LOOLWSD.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit c71ce222a5d95ef53fce7548873818359b4f5f38
Author: Henry Castro <[email protected]>
Date: Thu Dec 3 15:43:54 2015 -0400
loolwsd: remove child workspace when a child dies
diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index f8882e0..0e0cc70 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1126,6 +1126,10 @@ void LOOLWSD::desktopMain()
{
std::cout << Util::logPrefix() << "One of our known child
processes died :" << std::to_string(pid) << std::endl;
MasterProcessSession::_childProcesses.erase(pid);
+
+ File aWorkSpace(LOOLSession::jailDocumentURL +
Path::separator() + std::to_string(pid));
+ if (aWorkSpace.exists())
+ aWorkSpace.remove(true);
}
if ( WCOREDUMP(status) )
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits