mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778382: Don't put anonymous sockets in the PipeMap because they can collide. r=bent
This commit is contained in:
parent
b3755edbdc
commit
852ef27807
@ -336,7 +336,9 @@ bool Channel::ChannelImpl::CreatePipe(const std::wstring& channel_id,
|
||||
pipe_ = pipe_fds[0];
|
||||
client_pipe_ = pipe_fds[1];
|
||||
|
||||
Singleton<PipeMap>()->Insert(pipe_name_, client_pipe_);
|
||||
if (pipe_name_.length()) {
|
||||
Singleton<PipeMap>()->Insert(pipe_name_, client_pipe_);
|
||||
}
|
||||
} else {
|
||||
pipe_ = ChannelNameToClientFD(pipe_name_);
|
||||
DCHECK(pipe_ > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user