We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19f0e18 + de65817 commit 834eaaeCopy full SHA for 834eaae
ext/opcache/ZendAccelerator.c
@@ -2734,6 +2734,7 @@ void zend_accel_schedule_restart(zend_accel_restart_reason reason TSRMLS_DC)
2734
}
2735
zend_accel_error(ACCEL_LOG_DEBUG, "Restart Scheduled!");
2736
2737
+ SHM_UNPROTECT();
2738
ZCSG(restart_pending) = 1;
2739
ZCSG(restart_reason) = reason;
2740
ZCSG(cache_status_before_restart) = ZCSG(accelerator_enabled);
@@ -2744,6 +2745,7 @@ void zend_accel_schedule_restart(zend_accel_restart_reason reason TSRMLS_DC)
2744
2745
} else {
2746
ZCSG(force_restart_time) = 0;
2747
2748
+ SHM_PROTECT();
2749
2750
2751
/* this is needed because on WIN32 lock is not decreased unless ZCG(counted) is set */
0 commit comments