mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- correct time comparison for determining the last idle child
This commit is contained in:
parent
cd26f63009
commit
f0621d39cd
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user