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.