@@ -450,11 +450,10 @@ void cleanupDocBrokers()
450
450
#if !MOBILEAPP
451
451
452
452
// / Forks as many children as requested.
453
- // / Returns the number of children requested to spawn,
454
- static int forkChildren (const int number)
453
+ static void forkChildren (const int number)
455
454
{
456
455
if (Util::isKitInProcess ())
457
- return 0 ;
456
+ return ;
458
457
459
458
LOG_TRC (" Request forkit to spawn " << number << " new child(ren)" );
460
459
Util::assertIsLocked (NewChildrenMutex);
@@ -468,10 +467,7 @@ static int forkChildren(const int number)
468
467
COOLWSD::sendMessageToForKit (message);
469
468
OutstandingForks += number;
470
469
LastForkRequestTime = std::chrono::steady_clock::now ();
471
- return number;
472
470
}
473
-
474
- return 0 ;
475
471
}
476
472
477
473
// / Cleans up dead children.
@@ -501,9 +497,7 @@ static bool cleanupChildren()
501
497
}
502
498
503
499
// / Decides how many children need spawning and spawns.
504
- // / Returns the number of children requested to spawn,
505
- // / -1 for error.
506
- static int rebalanceChildren (int balance)
500
+ static void rebalanceChildren (int balance)
507
501
{
508
502
Util::assertIsLocked (NewChildrenMutex);
509
503
@@ -534,10 +528,8 @@ static int rebalanceChildren(int balance)
534
528
<< (available == 1 ? " child" : " children" ) << " , and "
535
529
<< OutstandingForks << " outstanding, forking " << balance
536
530
<< " more. Time since last request: " << durationMs);
537
- return forkChildren (balance);
531
+ forkChildren (balance);
538
532
}
539
-
540
- return 0 ;
541
533
}
542
534
543
535
// / Proactively spawn children processes
0 commit comments