diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-10-18 20:00:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-10-18 20:00:02 +0000 |
commit | 248fb14f089216bf384c8914163cc77b4f219154 (patch) | |
tree | 7c55d3a23461ce64809f39a3ad01c487e1de53b2 /server.c | |
parent | 31954339d1487d2a179f6180867e67cbd22aabd1 (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.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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]); |