Skip to content

Commit

Permalink
check rc in make_fdpair
Browse files Browse the repository at this point in the history
since it can fail, e.g. Windows + AF_UNIX
  • Loading branch information
minrk committed Sep 8, 2022
1 parent 4e193f3 commit b2921d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/norm_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ void zmq::norm_engine_t::plug (io_thread_t *io_thread_,
#ifdef ZMQ_USE_NORM_SOCKET_WRAPPER
norm_wrapper_thread_args_t *threadArgs = new norm_wrapper_thread_args_t;
int rc = make_fdpair (&wrapper_read_fd, &threadArgs->wrapper_write_fd);
errno_assert (rc != -1);

threadArgs->norm_descriptor = NormGetDescriptor (norm_instance);
threadArgs->norm_instance_handle = norm_instance;
norm_descriptor_handle = add_fd (wrapper_read_fd);
Expand Down

0 comments on commit b2921d7

Please sign in to comment.