[sr-dev] When is mod_register() called?
Alex Hermann
alex at speakup.nl
Thu Feb 2 10:33:06 CET 2012
On Thursday 02 February 2012, Daniel-Constantin Mierla wrote:
> On 2/2/12 9:42 AM, Alex Hermann wrote:
> > While looking at this code a question emerged: is mod_register() called
> > before or after forking the subprocesses? (I hope the answer is after)
>
> before forking (when the module is loaded), why do you hope is after?
I may misunderstand the concept of shared memory on forking, but isn't the
allocated buffer shared among all forked processes then? Without any locking,
funny things are going to happen.
--
Greetings,
Alex Hermann
More information about the sr-dev
mailing list