summaryrefslogtreecommitdiff
path: root/includes/ForkController.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ForkController.php')
-rw-r--r--includes/ForkController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/ForkController.php b/includes/ForkController.php
index d87dfb1e..9cacef54 100644
--- a/includes/ForkController.php
+++ b/includes/ForkController.php
@@ -34,7 +34,7 @@ class ForkController {
public function __construct( $numProcs, $flags = 0 ) {
if ( php_sapi_name() != 'cli' ) {
- throw new MWException( "MultiProcess cannot be used from the web." );
+ throw new MWException( "ForkController cannot be used from the web." );
}
$this->procsToStart = $numProcs;
$this->flags = $flags;
@@ -119,13 +119,13 @@ class ForkController {
// Don't share DB or memcached connections
wfGetLBFactory()->destroyInstance();
ObjectCache::clear();
- unset( $wgMemc );
+ $wgMemc = null;
}
/**
* Fork a number of worker processes.
*
- * return string
+ * @return string
*/
protected function forkWorkers( $numProcs ) {
$this->prepareEnvironment();