Chris,

> If you replace Python's sig handler, aren't you removing all the logics in 
> Python's sig handler, whatever Python may have to do.

Yep, and this is what makes this subtle and non-ideal.  But, you can
set/unset this signal handler each time
zmq_recv is called, and make it play well with Python.  But it is
definitely a pain and I don't know of anyone who has tried this on
Windows.

Cheers,

Brian

> Chris
>
> On Mar 9, 2010, at 1:37 PM, Brian Granger wrote:
>
>> A correction...
>>
>>> Thus, I think the only way of resolving this if 0MQ is making out
>>> signals in the IO threads.  Thoughts?
>>
>> What I meant was...
>>
>> Thus, I can't think of any way of resolving this if 0MQ is masking out
>> signal in the IO threads.
>>
>> After looking a bit more, I think it might be possible to install a
>> signal handler at the C-level
>> that replaces Python's default signal handler and does the right
>> thing.  I know another project
>> that does this with some success.  I am contacting them about this.
>> But, it would be nice
>> to not have to do this...
>>
>> Cheers,
>>
>> Brian
>>
>> --
>> Brian E. Granger, Ph.D.
>> Assistant Professor of Physics
>> Cal Poly State University, San Luis Obispo
>> [email protected]
>> [email protected]
>> _______________________________________________
>> zeromq-dev mailing list
>> [email protected]
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
[email protected]
[email protected]
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to