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

Diff for /src/usr.bin/tmux/server-fn.c between version 1.90 and 1.91

version 1.90, 2015/10/27 13:23:24 version 1.91, 2015/10/27 15:58:42
Line 39 
Line 39 
         long    pid;          long    pid;
   
         if (s != NULL) {          if (s != NULL) {
                 term = options_get_string(&global_options, "default-terminal");                  term = options_get_string(global_options, "default-terminal");
                 environ_set(env, "TERM", term);                  environ_set(env, "TERM", term);
   
                 idx = s->id;                  idx = s->id;
Line 183 
Line 183 
         if (c->flags & CLIENT_SUSPENDED)          if (c->flags & CLIENT_SUSPENDED)
                 return;                  return;
   
         cmd = options_get_string(&c->session->options, "lock-command");          cmd = options_get_string(c->session->options, "lock-command");
         if (strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)          if (strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)
                 return;                  return;
   
Line 219 
Line 219 
                                 server_redraw_session_group(s);                                  server_redraw_session_group(s);
                 }                  }
   
                 if (options_get_number(&s->options, "renumber-windows")) {                  if (options_get_number(s->options, "renumber-windows")) {
                         if ((sg = session_group_find(s)) != NULL) {                          if ((sg = session_group_find(s)) != NULL) {
                                 TAILQ_FOREACH(target_s, &sg->sessions, gentry)                                  TAILQ_FOREACH(target_s, &sg->sessions, gentry)
                                         session_renumber_windows(target_s);                                          session_renumber_windows(target_s);
Line 272 
Line 272 
         }          }
   
         if (dstidx == -1)          if (dstidx == -1)
                 dstidx = -1 - options_get_number(&dst->options, "base-index");                  dstidx = -1 - options_get_number(dst->options, "base-index");
         dstwl = session_attach(dst, srcwl->window, dstidx, cause);          dstwl = session_attach(dst, srcwl->window, dstidx, cause);
         if (dstwl == NULL)          if (dstwl == NULL)
                 return (-1);                  return (-1);
Line 308 
Line 308 
                 wp->fd = -1;                  wp->fd = -1;
         }          }
   
         if (options_get_number(&w->options, "remain-on-exit")) {          if (options_get_number(w->options, "remain-on-exit")) {
                 if (old_fd == -1)                  if (old_fd == -1)
                         return;                          return;
                 screen_write_start(&ctx, wp, &wp->base);                  screen_write_start(&ctx, wp, &wp->base);
Line 371 
Line 371 
         struct client   *c;          struct client   *c;
         struct session  *s_new;          struct session  *s_new;
   
         if (!options_get_number(&s->options, "detach-on-destroy"))          if (!options_get_number(s->options, "detach-on-destroy"))
                 s_new = server_next_session(s);                  s_new = server_next_session(s);
         else          else
                 s_new = NULL;                  s_new = NULL;
Line 407 
Line 407 
         RB_FOREACH(s, sessions, &sessions) {          RB_FOREACH(s, sessions, &sessions) {
                 if (!(s->flags & SESSION_UNATTACHED))                  if (!(s->flags & SESSION_UNATTACHED))
                         continue;                          continue;
                 if (options_get_number (&s->options, "destroy-unattached"))                  if (options_get_number (s->options, "destroy-unattached"))
                         session_destroy(s);                          session_destroy(s);
         }          }
 }  }
Line 418 
Line 418 
         struct timeval  tv;          struct timeval  tv;
         int             delay;          int             delay;
   
         delay = options_get_number(&c->session->options, "display-panes-time");          delay = options_get_number(c->session->options, "display-panes-time");
         tv.tv_sec = delay / 1000;          tv.tv_sec = delay / 1000;
         tv.tv_usec = (delay % 1000) * 1000L;          tv.tv_usec = (delay % 1000) * 1000L;
   

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91