mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: ipc://* random dir created with USE_FD
Solution: if options.use_fd do not create temporary random directory for ipc://*, since the socket is already created and passed to the library by the user.
This commit is contained in:
@@ -214,7 +214,7 @@ int zmq::ipc_listener_t::set_address (const char *addr_)
|
|||||||
std::string addr (addr_);
|
std::string addr (addr_);
|
||||||
|
|
||||||
// Allow wildcard file
|
// Allow wildcard file
|
||||||
if (addr [0] == '*') {
|
if (options.use_fd == -1 && addr [0] == '*') {
|
||||||
if ( create_wildcard_address(tmp_socket_dirname, addr) < 0 ) {
|
if ( create_wildcard_address(tmp_socket_dirname, addr) < 0 ) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user