Skip to content

Commit 2ece3ea

Browse files
committed
improperlog
1 parent f86aa34 commit 2ece3ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sapi/fpm/fpm/fpm_children.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,10 @@ int fpm_children_make(struct fpm_worker_pool_s *wp, int in_event_loop, int nb_to
424424
}
425425

426426
if (!warned && fpm_global_config.process_max > 0 && fpm_globals.running_children >= fpm_global_config.process_max) {
427-
warned = 1;
428-
zlog(ZLOG_WARNING, "The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'");
427+
if (wp->running_children < max) {
428+
warned = 1;
429+
zlog(ZLOG_WARNING, "The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'");
430+
}
429431
}
430432

431433
return 1; /* we are done */

0 commit comments

Comments
 (0)