mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-5.6'
This commit is contained in:
commit
4ccbb1ed33
@ -576,7 +576,7 @@ static inline void kill_all_lockers(struct flock *mem_usage_check)
|
||||
ZCSG(force_restart_time) = 0;
|
||||
while (mem_usage_check->l_pid > 0) {
|
||||
while (tries--) {
|
||||
zend_accel_error(ACCEL_LOG_INFO, "Killed locker %d", mem_usage_check->l_pid);
|
||||
zend_accel_error(ACCEL_LOG_ERROR, "Killed locker %d", mem_usage_check->l_pid);
|
||||
if (kill(mem_usage_check->l_pid, SIGKILL)) {
|
||||
break;
|
||||
}
|
||||
@ -589,7 +589,7 @@ static inline void kill_all_lockers(struct flock *mem_usage_check)
|
||||
usleep(10000);
|
||||
}
|
||||
if (!tries) {
|
||||
zend_accel_error(ACCEL_LOG_INFO, "Can't kill %d after 20 tries!", mem_usage_check->l_pid);
|
||||
zend_accel_error(ACCEL_LOG_ERROR, "Can't kill %d after 20 tries!", mem_usage_check->l_pid);
|
||||
ZCSG(force_restart_time) = time(NULL); /* restore forced restart request */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user