Alexander Polyakov
10 years ago
committed by
Joe Watkins
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E
1 changed files with
8 additions and
1 deletions
-
ext/opcache/ZendAccelerator.c
|
|
|
@ -2941,11 +2941,18 @@ void accel_shutdown(void) |
|
|
|
|
|
|
|
void zend_accel_schedule_restart(zend_accel_restart_reason reason) |
|
|
|
{ |
|
|
|
const char *zend_accel_restart_reason_text[ACCEL_RESTART_USER + 1] = { |
|
|
|
"out of memory", |
|
|
|
"hash overflow", |
|
|
|
"user", |
|
|
|
}; |
|
|
|
|
|
|
|
if (ZCSG(restart_pending)) { |
|
|
|
/* don't schedule twice */ |
|
|
|
return; |
|
|
|
} |
|
|
|
zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled!"); |
|
|
|
zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled! Reason: %s", |
|
|
|
zend_accel_restart_reason_text[reason]); |
|
|
|
|
|
|
|
HANDLE_BLOCK_INTERRUPTIONS(); |
|
|
|
SHM_UNPROTECT(); |
|
|
|
|