From d570f57b6ed6ce6a591ad2f0e9f16b8d070d016e Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 10 Apr 2016 23:58:33 +0100 Subject: [PATCH] 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. --- src/ipc_listener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc_listener.cpp b/src/ipc_listener.cpp index 8220d4bf..cead3870 100644 --- a/src/ipc_listener.cpp +++ b/src/ipc_listener.cpp @@ -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; }