Skip to content

Commit

Permalink
Add a debug message for this especial case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Aug 6, 2021
1 parent dd3e46d commit 17b38c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pluginlaunch.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ pluginlaunch_wait_for_free_process (kb_t kb)
update_running_processes (kb);
/* Max number of processes are still running, wait for a child to exit or
* to timeout. */

if (num_running_processes >= max_running_processes)
g_debug ("%s. Number of running processes >= maximum running processes (%d >= %d). "
"Waitting for free slot for processes.",
__func__, num_running_processes, max_running_processes);

while (
(num_running_processes >= max_running_processes)
|| (num_running_processes > 0 && (check_memory () || check_sysload ())))
Expand Down

0 comments on commit 17b38c0

Please sign in to comment.