Problem: zmq_proxy* may return EINTR other than ETERM

Solution: mention this in the documentation
This commit is contained in:
Luca Boccassi 2017-01-03 15:34:08 +01:00
parent ec2ba8a997
commit 28c7abf821
2 changed files with 6 additions and 4 deletions

View File

@ -63,8 +63,9 @@ of workers using the pipeline pattern.
RETURN VALUE
------------
The _zmq_proxy()_ function always returns `-1` and 'errno' set to *ETERM* (the
0MQ 'context' associated with either of the specified sockets was terminated).
The _zmq_proxy()_ function always returns `-1` and 'errno' set to *ETERM* or
*EINTR* (the 0MQ 'context' associated with either of the specified sockets was
terminated).
EXAMPLE

View File

@ -38,8 +38,9 @@ cf zmq_proxy
RETURN VALUE
------------
The _zmq_proxy_steerable()_ function returns 0 if TERMINATE is sent to its
control socket. Otherwise, it returns `-1` and 'errno' set to *ETERM* (the
0MQ 'context' associated with either of the specified sockets was terminated).
control socket. Otherwise, it returns `-1` and 'errno' set to *ETERM* or
*EINTR* (the 0MQ 'context' associated with either of the specified sockets was
terminated).
EXAMPLE