Start the first client with a special socketpair so it is already known to the

server rather than playing silly games to get them synchronised before doing
anything.

Change attach-session to start the server.
This commit is contained in:
Nicholas Marriott
2009-01-19 17:16:09 +00:00
parent 95323a6a36
commit 5f6a351df7
6 changed files with 92 additions and 83 deletions

3
tmux.h
View File

@@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.241 2009-01-18 21:46:30 nicm Exp $ */
/* $Id: tmux.h,v 1.242 2009-01-19 17:16:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1253,6 +1253,7 @@ const char *key_string_lookup_key(int);
/* server.c */
extern struct clients clients;
struct client *server_create_client(int);
int server_client_index(struct client *);
int server_start(const char *);