[asterisk-dev] [asterisk-commits] rizzo: trunk r89031 - /trunk/main/loader.c

Luigi Rizzo rizzo at icir.org
Tue Nov 6 13:05:45 CST 2007


On Tue, Nov 06, 2007 at 11:14:38AM -0600, Kevin P. Fleming wrote:
> SVN commits to the Asterisk project wrote:
> 
> > On linux the order of execution of constructor
> > was evidently different (it may depend on the
> > ordering of modules in the ELF file).
> 
> On Linux, mutexes do not require constructors for initialization, so
> this has never been an issue.

ok this explains something.
But the problem is not just for mutexes, it is more general.  Now
that i remember it, the FreeBS kernel has a little bit of support
in the kernel, so that you can specify a partial order for the
execution of constructors of "embedded" modules.

Maybe we could replicate something like that to enforce the execution
order.

cheers
luigi



More information about the asterisk-dev mailing list