Calling zmq_unbind with an unknown endpoint should set zmq_errno to EINVAL but fails with ENOENT

Description

Giving zmq_unbind an unknown endpoint should return -1 and set zmq_errno to EINVAL. Currently it returns -1 and set zmq_errno to ENOENT. I do not know if this is a library bug or a documentation bug. Clarity either way would be appreciated.

Code to reproduce is available in the "issues" repository corresponding to this bug number.

Environment

OSX 10.8.2, libzmq 3.2.3 (master from zeromq3-x)

Activity

Show:

Details

Assignee

Reporter

Components

Affects versions

Priority

Created February 19, 2013 at 2:26 PM
Updated February 19, 2013 at 2:26 PM