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:
Luca Boccassi 2016-04-10 23:58:33 +01:00
parent f18463f323
commit d570f57b6e

View File

@ -214,7 +214,7 @@ int zmq::ipc_listener_t::set_address (const char *addr_)
std::string addr (addr_);
// Allow wildcard file
if (addr [0] == '*') {
if (options.use_fd == -1 && addr [0] == '*') {
if ( create_wildcard_address(tmp_socket_dirname, addr) < 0 ) {
return -1;
}