From 2ece3ea699ce69bb478a80af1a15b429699a5368 Mon Sep 17 00:00:00 2001 From: redfoxli Date: Sat, 30 May 2015 14:37:41 +0800 Subject: [PATCH] improperlog --- sapi/fpm/fpm/fpm_children.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sapi/fpm/fpm/fpm_children.c b/sapi/fpm/fpm/fpm_children.c index 45cc075b42a..b48fa54f532 100644 --- a/sapi/fpm/fpm/fpm_children.c +++ b/sapi/fpm/fpm/fpm_children.c @@ -424,8 +424,10 @@ int fpm_children_make(struct fpm_worker_pool_s *wp, int in_event_loop, int nb_to } if (!warned && fpm_global_config.process_max > 0 && fpm_globals.running_children >= fpm_global_config.process_max) { - warned = 1; - zlog(ZLOG_WARNING, "The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'"); + if (wp->running_children < max) { + warned = 1; + zlog(ZLOG_WARNING, "The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'"); + } } return 1; /* we are done */