[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/LOOLBroker.cpp
Henry Castro
hcastro at collabora.com
Sun Sep 27 15:08:51 PDT 2015
loolwsd/LOOLBroker.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 091d9cdbd2eda4ad3487f9baebc458ed2f8876d4
Author: Henry Castro <hcastro at collabora.com>
Date: Sun Sep 27 18:08:08 2015 -0400
loolwsd: clear cache URL when child processes died
diff --git a/loolwsd/LOOLBroker.cpp b/loolwsd/LOOLBroker.cpp
index 4737cc4..f3c6672 100644
--- a/loolwsd/LOOLBroker.cpp
+++ b/loolwsd/LOOLBroker.cpp
@@ -778,8 +778,12 @@ int main(int argc, char** argv)
{
if ((WIFEXITED(status) || WIFSIGNALED(status) || WTERMSIG(status) ) )
{
+ forkMutex.lock();
std::cout << Util::logPrefix() << "One of our known child processes died :" << std::to_string(pid) << std::endl;
_childProcesses.erase(pid);
+ _cacheURL.clear();
+ _emptyURL.clear();
+ forkMutex.unlock();
}
if ( WCOREDUMP(status) )
More information about the Libreoffice-commits
mailing list