[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp

Henry Castro hcastro at collabora.com
Thu Dec 3 11:45:57 PST 2015


 loolwsd/LOOLWSD.cpp |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit c71ce222a5d95ef53fce7548873818359b4f5f38
Author: Henry Castro <hcastro at collabora.com>
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) )


More information about the Libreoffice-commits mailing list