[zeromq-dev] Fwd: ZMQ Closure - Change of Beginners Documentation
Pieter Hintjens
ph at imatix.com
Wed May 25 17:02:18 CEST 2011
On Wed, May 25, 2011 at 4:52 PM, Mike Pearce <mike at kaew.be> wrote:
> For information, I am not convinced that ETERM will always be the exit value
> returned. In reality It does not matter and I prefer not to test for this
> value. My loop is of the form...
Indeed, this works. I'm pretty sure ETERM is properly delivered but
there may be other signals, such as EINTR if your process is killed by
sigint.
Mike, thanks for the suggestion for the Guide. I'll rewrite that text
based on your comments and those of others. There are certain shutdown
patterns that work. It depends somewhat on the type of threads and the
work they are doing.
Could you, to make sure this doesn't get lost, create an issue on the
zguide issue tracker, and make clear what concepts you found
confusing, badly explained, or that you assumed would work, and would
not.
Thanks!
-Pieter
More information about the zeromq-dev
mailing list