Rename connect_to's pid parameter to session
This commit is contained in:
parent
1764ce0bdc
commit
e9442ea307
|
@ -437,10 +437,10 @@ void RemoteClient::write_next_key()
|
|||
}
|
||||
}
|
||||
|
||||
std::unique_ptr<RemoteClient> connect_to(const String& pid, std::unique_ptr<UserInterface>&& ui,
|
||||
std::unique_ptr<RemoteClient> connect_to(const String& session, std::unique_ptr<UserInterface>&& ui,
|
||||
const String& init_command)
|
||||
{
|
||||
auto filename = "/tmp/kak-" + pid;
|
||||
auto filename = "/tmp/kak-" + session;
|
||||
|
||||
int sock = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
fcntl(sock, F_SETFD, FD_CLOEXEC);
|
||||
|
|
|
@ -26,7 +26,7 @@ private:
|
|||
DisplayCoord m_dimensions;
|
||||
FDWatcher m_socket_watcher;
|
||||
};
|
||||
std::unique_ptr<RemoteClient> connect_to(const String& pid,
|
||||
std::unique_ptr<RemoteClient> connect_to(const String& session,
|
||||
std::unique_ptr<UserInterface>&& ui,
|
||||
const String& init_command);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user