wsd/LOOLWSD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 33b72aa378d5be7badaa0a05a491b1b85327782b Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits