aboutsummaryrefslogtreecommitdiff
path: root/lib/task/isisBatchTask.class.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-11-18 19:14:54 -0200
committerSilvio <silvio@devlet.com.br>2010-11-18 19:14:54 -0200
commit34b538dfc4fcddebadb41425b280b3c48edafbfb (patch)
treecc31a846ab23093bb21b0044b2077122551b4d44 /lib/task/isisBatchTask.class.php
parent978b0ed546aebbe04cbe364dd050eaec18da5512 (diff)
downloadsf_isis_importer_plugin-34b538dfc4fcddebadb41425b280b3c48edafbfb.tar.gz
sf_isis_importer_plugin-34b538dfc4fcddebadb41425b280b3c48edafbfb.tar.bz2
Using passthru instead of pcntl to reduce memory usage
Diffstat (limited to 'lib/task/isisBatchTask.class.php')
-rw-r--r--lib/task/isisBatchTask.class.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/task/isisBatchTask.class.php b/lib/task/isisBatchTask.class.php
index 02cb526..a025691 100644
--- a/lib/task/isisBatchTask.class.php
+++ b/lib/task/isisBatchTask.class.php
@@ -51,23 +51,7 @@ EOF;
for ($offset = 0; $offset <= $max; $offset = $offset + $rows)
{
- $pid = pcntl_fork();
- if ($pid == -1)
- {
- die('Could not fork.');
- }
- else if ($pid)
- {
- // We are the parent.
- // Protect against Zombie children.
- pcntl_wait($status);
- }
- else
- {
- // We are the child.
- // Mass ISIS import.
- $isis->massImport($this, 'task', $rows, $offset, $database);
- }
+ passthru("php symfony isis:import --database=$database --loglevel=". $options['loglevel'] ." $rows $offset");
}
}
}