summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-10-18 20:00:02 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-10-18 20:00:02 +0000
commit248fb14f089216bf384c8914163cc77b4f219154 (patch)
tree7c55d3a23461ce64809f39a3ad01c487e1de53b2 /server.c
parent31954339d1487d2a179f6180867e67cbd22aabd1 (diff)
Merge the before and after attach client code into one in client.c
(instead of two in tmux.c and client.c).
Diffstat (limited to 'server.c')
-rw-r--r--server.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/server.c b/server.c
index 721bb570..7a4e5fcf 100644
--- a/server.c
+++ b/server.c
@@ -106,11 +106,11 @@ server_create_socket(void)
/* Fork new server. */
int
-server_start(char *path)
+server_start(void)
{
struct window_pane *wp;
int pair[2];
- char rpathbuf[MAXPATHLEN], *cause;
+ char *cause;
struct timeval tv;
u_int i;
@@ -155,12 +155,8 @@ server_start(char *path)
utf8_build();
start_time = time(NULL);
- socket_path = path;
-
- if (realpath(socket_path, rpathbuf) == NULL)
- strlcpy(rpathbuf, socket_path, sizeof rpathbuf);
log_debug("socket path %s", socket_path);
- setproctitle("server (%s)", rpathbuf);
+ setproctitle("server (%s)", socket_path);
server_fd = server_create_socket();
server_client_create(pair[1]);