From f0621d39cd2684683ef417dfa71b3adf0e000d92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Loyet?= Date: Sun, 7 Nov 2010 21:47:14 +0000 Subject: [PATCH] - correct time comparison for determining the last idle child --- sapi/fpm/fpm/fpm_process_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/fpm/fpm/fpm_process_ctl.c b/sapi/fpm/fpm/fpm_process_ctl.c index b49767243f..4eae0a2926 100644 --- a/sapi/fpm/fpm/fpm_process_ctl.c +++ b/sapi/fpm/fpm/fpm_process_ctl.c @@ -336,7 +336,7 @@ static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now, struct if (last_idle_child == NULL) { last_idle_child = child; } else { - if (child->started.tv_sec < last_idle_child->started.tv_sec) { + if (timercmp(&child->started, &last_idle_child->started, <)) { last_idle_child = child; } } -- 2.50.1