summaryrefslogtreecommitdiff
path: root/src/remote.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-09-19 19:54:14 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-09-19 19:54:14 +0100
commit415be1d2c7cd46d0c45cc067951d0531b3deec8c (patch)
tree15abb48673397ad6e9b82a7c20762e12792ffff3 /src/remote.cc
parent0b63074f90d11981d63ec3ed51c13a2aa7da0208 (diff)
Add a -s command line option for specifying session name
Diffstat (limited to 'src/remote.cc')
-rw-r--r--src/remote.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.cc b/src/remote.cc
index ef3b77bb..586b18bb 100644
--- a/src/remote.cc
+++ b/src/remote.cc
@@ -508,8 +508,8 @@ private:
FDWatcher m_socket_watcher;
};
-Server::Server()
- : m_filename{"/tmp/kak-" + to_string(getpid())}
+Server::Server(const String& session_name)
+ : m_filename{"/tmp/kak-" + session_name}
{
int listen_sock = socket(AF_UNIX, SOCK_STREAM, 0);
fcntl(listen_sock, F_SETFD, FD_CLOEXEC);