Hi,

On Tue, Aug 21, 2012 at 8:49 PM, Ian Barber <[email protected]> wrote:
> On Tue, Aug 21, 2012 at 1:32 PM, Pedro Melo <[email protected]> wrote:
>
>> Is there a clean way to do this, have fork()'s after the context was created?
>
> It's tricky! You'd do better creating a context for each child to be honest.

Yeah, I've come to understand this, but this is an old code base and I
can't change that on this particular case.

I was able to generate a small C program that I can use to trigger the
assertion. I can reproduce it now, and it gave me some insights on how
to go about working around it. The C program is here:

https://github.com/lestrrat/p5-ZMQ/issues/11#issuecomment-7919903

Basically, if a child process calls zmq_term on the parents context,
the assertion will be triggered on the parent.

Thanks,
-- 
Pedro Melo
@pedromelo
http://www.simplicidade.org/
http://about.me/melo
xmpp:[email protected]
mailto:[email protected]
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to