From 1bd94a979d4dd418a84c3d64656e9c64a320cda1 Mon Sep 17 00:00:00 2001 From: jean-airoldie <25088801+jean-airoldie@users.noreply.github.com> Date: Wed, 24 Jul 2019 05:59:29 -0400 Subject: [PATCH] Problem: behavior of closing a socket registered... ...in a poller is not documented. Solution: Document it. --- doc/zmq_poller.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/zmq_poller.txt b/doc/zmq_poller.txt index 9f266477..a9d36403 100644 --- a/doc/zmq_poller.txt +++ b/doc/zmq_poller.txt @@ -134,6 +134,9 @@ and stores it in the address pointer to by 'fd'. The zmq_poller is only guaranteed to have a file descriptor if at least one thread-safe socket is currently registered. +Note that closing a socket that is registered in a poller leads to undefined +behavior. The socket must be unregistered first. + EVENT TYPES -----------