[zeromq-dev] Using zeroMQ socket from freeradius module
Max Kuznecov
mek at mek.uz.ua
Sat Jul 7 13:18:32 CEST 2012
Indeed! Looks like freeradius instantiates its modules before forking.
I've postponed context/socket initialization and now everything works perfectly.
Thank you very much!
2012/7/7 Ian Barber <ian.barber at gmail.com>:
>
>
> On Fri, Jul 6, 2012 at 3:11 PM, Max Kuznecov <mek at mek.uz.ua> wrote:
>>
>> Oh, sorry I forgot to mention versions:
>> linux centos 6.2, zeromq 2.2.0
>>
>
> Is the context created in the process before the fork happens? Might be
> worth trying moving where the context and socket are created - it can be
> tricky with fork after context creation as the IO thread is created, the
> context handle is copied with the fork, but the thread isn't.
>
> Ian
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
--
~syhpoon
More information about the zeromq-dev
mailing list