mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
Problem: do not call poller->add_fd() with -1. Fixes #1558
This commit is contained in:
parent
23c55612e4
commit
5dad00ebdc
@ -40,8 +40,10 @@ zmq::reaper_t::reaper_t (class ctx_t *ctx_, uint32_t tid_) :
|
|||||||
poller = new (std::nothrow) poller_t (*ctx_);
|
poller = new (std::nothrow) poller_t (*ctx_);
|
||||||
alloc_assert (poller);
|
alloc_assert (poller);
|
||||||
|
|
||||||
mailbox_handle = poller->add_fd (mailbox.get_fd (), this);
|
if (mailbox.get_fd () != retired_fd) {
|
||||||
poller->set_pollin (mailbox_handle);
|
mailbox_handle = poller->add_fd (mailbox.get_fd (), this);
|
||||||
|
poller->set_pollin (mailbox_handle);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_FORK
|
#ifdef HAVE_FORK
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user