Commit graph

17 commits

Author SHA1 Message Date
umherirrender
ef2f507d23 Fixed spacing in files direct in includes folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: Ibb8dd102db045522d12ff939075ba7420d95ab6b
2013-04-21 06:38:49 +00:00
Ori Livneh
6c163ad265 (Bug 37957) Replace php_sapi_name() with PHP_SAPI
The PHP_SAPI constant has been available since PHP 4.2.0. It's more
concise to use the constant and has less overhead than a function call.

Furthermore, PHP_SAPI rhymes with "happy", whereas "php_sapi_name"
rhymes with "lame". QED, etc.

Change-Id: Ie8c121cb8fcef50536af8d3f66723b458f0bf9af
2013-02-04 12:50:45 -08:00
Aaron Schulz
5b67e492ff [LockManager] Refactoring to allow proper cross-wiki support.
Change-Id: I331d011a6fa4edd434f0fb547d325ad60901119d
2013-01-28 11:03:33 -08:00
Alexandre Emsenhuber
15e9fcca01 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Iaebd4e253ff3b35b568e9b394231a5691445ac95
2012-05-14 19:59:58 +02:00
Aaron
fbecd7781b Destroy any lock manager connections when forking.
Change-Id: I320ac659559eb82378da0b9afbbb1dd3e48ba41c
2012-04-20 16:34:43 -07:00
Aaron Schulz
4bfce6a539 Make sure ForkController nukes any connection resources that backends might have before forking 2012-03-09 22:59:13 +00:00
Sam Reed
76246b9bf5 More return documentation 2012-02-09 21:33:27 +00:00
Tim Starling
2ba6b03e8e * Fix class name
* unset($wgMemc) doesn't actually do anything useful, it just removes the reference from the local scope. Set it to NULL instead.
2011-12-20 04:39:12 +00:00
Sam Reed
ad39f2da86 Trim trailing whitespace
Add/tweak/update documentation

Simplify some boolean returns
2011-09-04 21:40:17 +00:00
Sam Reed
296f3d3f4f And even more documentation 2011-05-28 18:59:42 +00:00
Platonides
9ced2d5c60 Follow up r83140. Add a clear() method to ObjectCache so that it can be used by ForkController. 2011-03-06 23:07:36 +00:00
Sam Reed
04f68827d0 Removal of unused globals
Removal of one setting of a variable to '', then not using further
2010-07-24 19:11:52 +00:00
Alexandre Emsenhuber
2620333e1d * add ForkController class to Maintenance group
* removed trailing spaces
2010-01-15 18:12:13 +00:00
Tim Starling
2ec95d3326 Assorted minor live patches to command-line scripts. 2009-04-30 05:52:25 +00:00
Tim Starling
0104dd55c9 Allow children to respond to SIGTERM 2009-03-18 02:30:02 +00:00
Tim Starling
d9bf616a44 * Added restart-on-error feature to ForkController, changed the interface to suit.
* Close some sockets before pcntl_exec() in an attempt to delay file handle exhaustion.
2009-02-27 04:18:34 +00:00
Tim Starling
abbf76b7b1 * Refactored the forking code from runJobs.php to a new class called ForkController. Implemented the same sort of forking in gearmanWorker.php.
* Fixed debugging code left in in gearmanRefreshLinks.php
2009-02-26 06:02:32 +00:00