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
* Added restart-on-error feature to ForkController, changed the interface to suit.
[lhc/web/wiklou.git]
/
maintenance
/
gearman
/
gearman.inc
diff --git
a/maintenance/gearman/gearman.inc
b/maintenance/gearman/gearman.inc
index
0678b82
..
a2a4018
100644
(file)
--- a/
maintenance/gearman/gearman.inc
+++ b/
maintenance/gearman/gearman.inc
@@
-11,6
+11,11
@@
class MWGearmanJob extends Net_Gearman_Job_Common {
$this->complete( array( 'result' => true ) );
socket_close( $this->conn );
+ # Close some more sockets
+ wfGetLBFactory()->shutdown();
+ global $wgMemc;
+ $wgMemc->disconnect_all();
+
# Find PHP
$php = readlink( '/proc/' . posix_getpid() . '/exe' );