[Libreoffice-commits] online.git: loolwsd/LOOLBroker.cpp
Henry Castro
hcastro at collabora.com
Sun Feb 21 12:37:52 UTC 2016
loolwsd/LOOLBroker.cpp | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
New commits:
commit d835d53ff5124c808ecd5ddc2f5f6c09d41572ea
Author: Henry Castro <hcastro at collabora.com>
Date: Sun Feb 21 08:37:55 2016 -0400
loolwsd: check last child exit code
diff --git a/loolwsd/LOOLBroker.cpp b/loolwsd/LOOLBroker.cpp
index 0fa3681..d0a2bfe 100644
--- a/loolwsd/LOOLBroker.cpp
+++ b/loolwsd/LOOLBroker.cpp
@@ -872,8 +872,17 @@ int main(int argc, char** argv)
// No child processes
if (errno == ECHILD)
{
- TerminationFlag = true;
- continue;
+ if (childExitCode == Application::EXIT_OK)
+ {
+ Log::warn("Warn: last child exited successfully, fork new one.");
+ ++forkCounter;
+ }
+ else
+ {
+ Log::error("Error: last child exited with error code.");
+ TerminationFlag = true;
+ continue;
+ }
}
}
More information about the Libreoffice-commits
mailing list