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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Tue Jan 3 05:53:34 UTC 2017


 wsd/LOOLWSD.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 33b72aa378d5be7badaa0a05a491b1b85327782b
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon Jan 2 15:40:20 2017 -0500

    wsd: correctly count outstanding spawned children
    
    Change-Id: I6e2d5c7d8fdfbcd268ef97cb1272bce76e8b69de
    Reviewed-on: https://gerrit.libreoffice.org/32669
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index cbe8c26..259b2aa 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -324,7 +324,7 @@ static bool forkChildren(const int number)
         const std::string aMessage = "spawn " + std::to_string(number) + "\n";
         LOG_DBG("MasterToForKit: " << aMessage.substr(0, aMessage.length() - 1));
 
-        ++OutstandingForks;
+        OutstandingForks += number;
         IoUtil::writeToPipe(LOOLWSD::ForKitWritePipe, aMessage);
         LastForkRequestTime = std::chrono::steady_clock::now();
         return true;


More information about the Libreoffice-commits mailing list