* Added restart-on-error feature to ForkController, changed the interface to suit.
[lhc/web/wiklou.git] / maintenance / runJobs.php
index 63dddeb..e5cc6a7 100644 (file)
@@ -20,9 +20,8 @@ if ( isset( $options['procs'] ) ) {
                echo "Invalid argument to --procs\n";
                exit( 1 );
        }
-       $fc = new ForkController;
-       if ( $fc->forkWorkers( $procs ) == 'parent' ) {
-               $fc->runParent();
+       $fc = new ForkController( $procs );
+       if ( $fc->start( $procs ) != 'child' ) {
                exit( 0 );
        }
 }