From 248fb14f089216bf384c8914163cc77b4f219154 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 18 Oct 2010 20:00:02 +0000 Subject: Merge the before and after attach client code into one in client.c (instead of two in tmux.c and client.c). --- server.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'server.c') 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]); -- cgit