protected $termReceived = false;
protected $flags = 0, $procsToStart = 0;
protected $termReceived = false;
protected $flags = 0, $procsToStart = 0;
const RESTART_ON_ERROR = 1;
public function __construct( $numProcs, $flags = 0 ) {
const RESTART_ON_ERROR = 1;
public function __construct( $numProcs, $flags = 0 ) {
throw new MWException( "ForkController cannot be used from the web." );
}
$this->procsToStart = $numProcs;
throw new MWException( "ForkController cannot be used from the web." );
}
$this->procsToStart = $numProcs;
- pcntl_signal( SIGTERM, array( $this, 'handleTermSignal' ), false );
+ pcntl_signal( SIGTERM, [ $this, 'handleTermSignal' ], false );
protected function prepareEnvironment() {
global $wgMemc;
// Don't share DB, storage, or memcached connections
protected function prepareEnvironment() {
global $wgMemc;
// Don't share DB, storage, or memcached connections
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
JobQueueGroup::destroySingletons();
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
JobQueueGroup::destroySingletons();