Emmanuel Doguet wrote:
    hi!

When autodiscovery a new host, if there where some reachibility problems : Jffnms add 2 sames interfaces names , only ID is different :/

An hack to repair this?


I think there is a bug in the file : engine/launcher.inc.php

Line : 403, we have this :

   // OLD child system
    if ($launcher_mode == "old_master") {

$items = call_user_func_array($launcher_item_source, array($refresh_items));
        $cant = count($items);


        if (!isset($items_per_child)) $items_per_child = 2;

        //$number_of_childs = 3;
        //$items_per_child = round($cant/$number_of_childs)+1;

        for ($i = 0; $i < $cant; $i += $items_per_child) {
spawn (false, join(",",array_slice($items, $i, $items_per_child))." 0 0 0", $items_per_child); //fork myself with this paremeters
            sleep(2); //wait before spawning new proceses
        }
    }


------------------------------
I have changed the line with spawn :

before :
--------
spawn (false, join(",",array_slice($items, $i, $items_per_child))." 0 0 0" ); //fork myself with this paremeters

after (add $items_per_child parameters) :
-----------------------------------------
spawn (false, join(",",array_slice($items, $i, $items_per_child))." 0 0 0", $items_per_child); //fork myself with this paremeters



With this, when Autodiscovery is not yet finish there were no spawn of another.

        I'm right ?

        

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to