diff options
Diffstat (limited to 'src/zmq_listener.cpp')
-rw-r--r-- | src/zmq_listener.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zmq_listener.cpp b/src/zmq_listener.cpp index 5d678a2..5c7552b 100644 --- a/src/zmq_listener.cpp +++ b/src/zmq_listener.cpp @@ -17,6 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <new> + #include "zmq_listener.hpp" #include "zmq_listener_init.hpp" #include "io_thread.hpp" @@ -62,8 +64,8 @@ void zmq::zmq_listener_t::in_event () // Create an init object. io_thread_t *io_thread = choose_io_thread (options.affinity); - zmq_listener_init_t *init = new zmq_listener_init_t (io_thread, owner, - fd, options); + zmq_listener_init_t *init = new (std::nothrow) zmq_listener_init_t ( + io_thread, owner, fd, options); zmq_assert (init); send_plug (init); send_own (owner, init); |