0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 07:58:14 +08:00

Merge pull request #775 from pijyoi/master

use enum retired_fd instead of -1
This commit is contained in:
Pieter Hintjens 2013-12-05 03:25:12 -08:00
commit f5b6bd70f3

View File

@ -121,7 +121,7 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
errno = EINVAL;
return NULL;
}
if (s->mailbox.get_fd () == -1)
if (s->mailbox.get_fd () == retired_fd)
return NULL;
alloc_assert (s);