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
/
runJobs.php
diff --git
a/maintenance/runJobs.php
b/maintenance/runJobs.php
index
63dddeb
..
e5cc6a7
100644
(file)
--- a/
maintenance/runJobs.php
+++ b/
maintenance/runJobs.php
@@
-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 );
}
}