[zeromq-dev] [pyzmq] ZMQError: interrupted system call
Martin Lucina
mato at kotelna.sk
Mon Apr 11 16:51:35 CEST 2011
Hi Daniel!
truemped at googlemail.com said:
> Hi,
>
> after upgrading my code from 2.0.10 to 2.1.4 I notice this change in
> signal handling. Before, I used SIGINT and SIGTERM as handlers to stop
> my processes. When I do this now, I get the $subject error, or, in more
> detail this one:
>
> http://friendpaste.com/7lLFEucbhPqYB65tuf9fjg
>
> The the eventloop finishes, and my messages telling the master that the
> worker has been stopped is never sent.
>
> With the upgrade to 2.1 is there any other method for me doing this kind
> of process exit?
This is to be expected and is generally for the better, see the rationale
here: (last point) http://www.zeromq.org/docs:2-1-upgrade
If you want to ignore the EINTR just restart the offending call in your
event loop.
Cheers,
-mato
More information about the zeromq-dev
mailing list