wsd/LOOLWSD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 0a174b24827c900c112f06bebfc4be8772bbc3fc 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> (cherry picked from commit 33b72aa378d5be7badaa0a05a491b1b85327782b) Reviewed-on: https://gerrit.libreoffice.org/34638 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 3b08d2a..faa1ed8 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -309,7 +309,7 @@ static void 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits