mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +01:00
Fixed wildcard IPC endpoint and added test case
This commit is contained in:
@@ -133,9 +133,11 @@ int zmq::ipc_listener_t::set_address (const char *addr_)
|
||||
// Allow wildcard file
|
||||
if (addr [0] == '*') {
|
||||
char buffer [12] = "2134XXXXXX";
|
||||
if (mkstemp (buffer) == -1)
|
||||
int fd = mkstemp (buffer);
|
||||
if (fd == -1)
|
||||
return -1;
|
||||
addr.assign (buffer);
|
||||
::close (fd);
|
||||
}
|
||||
|
||||
// Get rid of the file associated with the UNIX domain socket that
|
||||
|
||||
Reference in New Issue
Block a user