From e9442ea3074532be9daacc9b870c89f15d5c0cc9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 2 Mar 2014 02:00:13 +0000 Subject: [PATCH] Rename connect_to's pid parameter to session --- src/remote.cc | 4 ++-- src/remote.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/remote.cc b/src/remote.cc index ee7d7602..ca4ce665 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -437,10 +437,10 @@ void RemoteClient::write_next_key() } } -std::unique_ptr connect_to(const String& pid, std::unique_ptr&& ui, +std::unique_ptr connect_to(const String& session, std::unique_ptr&& 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); diff --git a/src/remote.hh b/src/remote.hh index 4682b3d3..4129691d 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -26,7 +26,7 @@ private: DisplayCoord m_dimensions; FDWatcher m_socket_watcher; }; -std::unique_ptr connect_to(const String& pid, +std::unique_ptr connect_to(const String& session, std::unique_ptr&& ui, const String& init_command);