loolwsd/LOOLBroker.cpp |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 9b729b7a4318a247858e22b65c87eda58f5fbe87
Author: Henry Castro <hcas...@collabora.com>
Date:   Sun Feb 21 08:45:17 2016 -0400

    loolwsd: remove child jail path when the lokit process dies

diff --git a/loolwsd/LOOLBroker.cpp b/loolwsd/LOOLBroker.cpp
index d0a2bfe..676464d 100644
--- a/loolwsd/LOOLBroker.cpp
+++ b/loolwsd/LOOLBroker.cpp
@@ -863,6 +863,14 @@ int main(int argc, char** argv)
                             << std::hex << status << "." << Log::end;
             }
 
+            if (WIFEXITED(status) || WIFSIGNALED(status))
+            {
+                // TODO. recovery files
+                const Path childPath = Path::forDirectory(childRoot + 
Path::separator() + std::to_string(pid));
+                Log::info("Removing jail [" + childPath.toString() + "].");
+                Util::removeFile(childPath, true);
+            }
+
             pipeHandler.syncChilds();
             timeoutCounter = 0;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to