Merge the before and after attach client code into one in client.c

(instead of two in tmux.c and client.c).
This commit is contained in:
Nicholas Marriott
2010-10-18 20:00:02 +00:00
parent 31954339d1
commit 248fb14f08
4 changed files with 297 additions and 337 deletions

View File

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