Multithreaded rebuild currently relies on PHP's pcntl extension, which is not present...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 19 Aug 2009 00:26:59 +0000 (00:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 19 Aug 2009 00:26:59 +0000 (00:26 +0000)
commit639b235e6c74e4f98ee1d3aafea0447fe4520cf3
tree576d015456768520ff0c9b24d5ebe9cecb35563a
parent00aeac0f62e0c98c9a512931bc365c50016dd3b3
Multithreaded rebuild currently relies on PHP's pcntl extension, which is not present by default and unsupported on Windows.
Rather than just spitting out a fatal error, let's gracefully fall back to single threading and tell the user why.
(Also now actually validating the thread number, though a maximum might be wise. ;)

Note that this could be implemented without pcntl instead by shelling out to subprocesses.
maintenance/rebuildLocalisationCache.php