[BACK]Return to server.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/server.c between version 1.159 and 1.160

version 1.159, 2016/07/07 09:24:09 version 1.160, 2016/10/10 21:29:23
Line 44 
Line 44 
 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
Line 99 
Line 98 
 }  }
   
 /* 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;
Line 187 
Line 186 
 }  }
   
 /* Server loop callback. */  /* Server loop callback. */
 int  static int
 server_loop(void)  server_loop(void)
 {  {
         struct client   *c;          struct client   *c;
Line 216 
Line 215 
 }  }
   
 /* 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;
Line 273 
Line 272 
 }  }
   
 /* 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;
Line 326 
Line 325 
 }  }
   
 /* Signal handler. */  /* Signal handler. */
 void  static void
 server_signal(int sig)  server_signal(int sig)
 {  {
         int     fd;          int     fd;
Line 353 
Line 352 
 }  }
   
 /* Handle SIGCHLD. */  /* Handle SIGCHLD. */
 void  static void
 server_child_signal(void)  server_child_signal(void)
 {  {
         int      status;          int      status;
Line 376 
Line 375 
 }  }
   
 /* 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;
Line 402 
Line 401 
 }  }
   
 /* 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;

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.160