dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove newline at end of MWExceptionRenderer::getShowBacktraceError
[lhc/web/wiklou.git]
/
maintenance
/
rebuildLocalisationCache.php
diff --git
a/maintenance/rebuildLocalisationCache.php
b/maintenance/rebuildLocalisationCache.php
index
82b362b
..
48602de
100644
(file)
--- a/
maintenance/rebuildLocalisationCache.php
+++ b/
maintenance/rebuildLocalisationCache.php
@@
-29,8
+29,6
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-use MediaWiki\MediaWikiServices;
-
require_once __DIR__ . '/Maintenance.php';
/**
require_once __DIR__ . '/Maintenance.php';
/**
@@
-113,8
+111,9
@@
class RebuildLocalisationCache extends Maintenance {
$pid = ( $threads > 1 ) ? pcntl_fork() : -1;
if ( $pid === 0 ) {
$pid = ( $threads > 1 ) ? pcntl_fork() : -1;
if ( $pid === 0 ) {
- // Reset services, so we don't re-use connections.
- MediaWikiServices::resetChildProcessServices();
+ // Child, reseed because there is no bug in PHP:
+ // https://bugs.php.net/bug.php?id=42465
+ mt_srand( getmypid() );
$this->doRebuild( $codes, $lc, $force );
exit( 0 );
$this->doRebuild( $codes, $lc, $force );
exit( 0 );