mirror of
https://github.com/zeromq/libzmq.git
synced 2025-09-22 13:59:34 +02:00
check rc in make_fdpair
since it can fail, e.g. Windows + AF_UNIX
This commit is contained in:
parent
4e193f36fc
commit
b2921d7183
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user