From 28c7abf821f09ff0e0ed50eafd82e96a4e96a2fa Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 3 Jan 2017 15:34:08 +0100 Subject: [PATCH] Problem: zmq_proxy* may return EINTR other than ETERM Solution: mention this in the documentation --- doc/zmq_proxy.txt | 5 +++-- doc/zmq_proxy_steerable.txt | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/zmq_proxy.txt b/doc/zmq_proxy.txt index cfad7791..f6c11a93 100644 --- a/doc/zmq_proxy.txt +++ b/doc/zmq_proxy.txt @@ -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 diff --git a/doc/zmq_proxy_steerable.txt b/doc/zmq_proxy_steerable.txt index 3cbefaf0..cd10d35d 100644 --- a/doc/zmq_proxy_steerable.txt +++ b/doc/zmq_proxy_steerable.txt @@ -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