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