Bogdan-Andrei Iancu writes:

 > There are 2 solutions for this:
 >     - the MI function should check if all resources are available and if 
 > not to allocate/open them -> no need of init function, the init being 
 > done at first run.
 >     - place in module_export structure an init_mi function to be called 
 > only in the processes running the mi functions.

in case of domain module, i think i could just test in
reload_domain_table function if db_handle is zero and if so, call
domain_db_init.  

so the first solution would work for domain module.  the second solution
sounds more general though.  like in permissions module, more complex
stuff is done in PROC_FIFO (see
permissions/address.cinit_child_addresses).

do whatever you feel best.

-- juha

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to