version 1.159, 2016/07/07 09:24:09 |
version 1.160, 2016/10/10 21:29:23 |
|
|
struct clients clients; |
struct clients clients; |
|
|
struct tmuxproc *server_proc; |
struct tmuxproc *server_proc; |
int server_fd; |
static int server_fd; |
int server_exit; |
static int server_exit; |
struct event server_ev_accept; |
static struct event server_ev_accept; |
|
|
struct cmd_find_state marked_pane; |
struct cmd_find_state marked_pane; |
|
|
int server_create_socket(void); |
static int server_create_socket(void); |
int server_loop(void); |
static int server_loop(void); |
int server_should_exit(void); |
static void server_send_exit(void); |
void server_send_exit(void); |
static void server_accept(int, short, void *); |
void server_accept(int, short, void *); |
static void server_signal(int); |
void server_signal(int); |
static void server_child_signal(void); |
void server_child_signal(void); |
static void server_child_exited(pid_t, int); |
void server_child_exited(pid_t, int); |
static void server_child_stopped(pid_t, int); |
void server_child_stopped(pid_t, int); |
|
|
|
/* Set marked pane. */ |
/* Set marked pane. */ |
void |
void |
|
|
} |
} |
|
|
/* Create server socket. */ |
/* Create server socket. */ |
int |
static int |
server_create_socket(void) |
server_create_socket(void) |
{ |
{ |
struct sockaddr_un sa; |
struct sockaddr_un sa; |
|
|
} |
} |
|
|
/* Server loop callback. */ |
/* Server loop callback. */ |
int |
static int |
server_loop(void) |
server_loop(void) |
{ |
{ |
struct client *c; |
struct client *c; |
|
|
} |
} |
|
|
/* Exit the server by killing all clients and windows. */ |
/* Exit the server by killing all clients and windows. */ |
void |
static void |
server_send_exit(void) |
server_send_exit(void) |
{ |
{ |
struct client *c, *c1; |
struct client *c, *c1; |
|
|
} |
} |
|
|
/* Callback for server socket. */ |
/* Callback for server socket. */ |
void |
static void |
server_accept(int fd, short events, __unused void *data) |
server_accept(int fd, short events, __unused void *data) |
{ |
{ |
struct sockaddr_storage sa; |
struct sockaddr_storage sa; |
|
|
} |
} |
|
|
/* Signal handler. */ |
/* Signal handler. */ |
void |
static void |
server_signal(int sig) |
server_signal(int sig) |
{ |
{ |
int fd; |
int fd; |
|
|
} |
} |
|
|
/* Handle SIGCHLD. */ |
/* Handle SIGCHLD. */ |
void |
static void |
server_child_signal(void) |
server_child_signal(void) |
{ |
{ |
int status; |
int status; |
|
|
} |
} |
|
|
/* Handle exited children. */ |
/* Handle exited children. */ |
void |
static void |
server_child_exited(pid_t pid, int status) |
server_child_exited(pid_t pid, int status) |
{ |
{ |
struct window *w, *w1; |
struct window *w, *w1; |
|
|
} |
} |
|
|
/* Handle stopped children. */ |
/* Handle stopped children. */ |
void |
static void |
server_child_stopped(pid_t pid, int status) |
server_child_stopped(pid_t pid, int status) |
{ |
{ |
struct window *w; |
struct window *w; |