* Added restart-on-error feature to ForkController, changed the interface to suit.
[lhc/web/wiklou.git] / maintenance / gearman / gearman.inc
index 0678b82..a2a4018 100644 (file)
@@ -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' );