Re: [zeromq-dev] pyzmq poller and EINTR

2019-01-16 Thread Martin.Belanger
?Thanks. That's a good workaround. I can send the signal from the signal handler. -Martin From: zeromq-dev on behalf of Doron Somech Sent: Wednesday, January 16, 2019 03:14 To: ZeroMQ development list Subject: Re: [zeromq-dev] pyzmq poller and EINTR

Re: [zeromq-dev] pyzmq poller and EINTR

2019-01-16 Thread Doron Somech
Add another socket to the zmq_poll, which is a pair, just for signalling the poll to stop. When you want to stop it, send a signal from the paired socket, which you can do from another thread. On Tue, Jan 15, 2019 at 5:50 PM wrote: > The C library provides zmq_poll(), which returns -1 on error

[zeromq-dev] pyzmq poller and EINTR

2019-01-15 Thread Martin.Belanger
The C library provides zmq_poll(), which returns -1 on error and set the errno accordingly. I'm particularly interested by errno=EINTR, which means: "The operation was interrupted by delivery of a signal before any events were available." Now if we look at the Python code there is