Allow children to respond to SIGTERM
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 18 Mar 2009 02:30:02 +0000 (02:30 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 18 Mar 2009 02:30:02 +0000 (02:30 +0000)
includes/ForkController.php

index b5f1f18..09e1788 100644 (file)
@@ -151,6 +151,7 @@ class ForkController {
                global $wgMemc, $wgMainCacheType;
                $wgMemc = wfGetCache( $wgMainCacheType );
                $this->children = null;
+               pcntl_signal( SIGTERM, SIG_DFL );               
        }
 
        protected function handleTermSignal( $signal ) {