Rename connect_to's pid parameter to session

This commit is contained in:
Maxime Coste 2014-03-02 02:00:13 +00:00
parent 1764ce0bdc
commit e9442ea307
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);