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

Diff for /src/usr.bin/tmux/server-client.c between version 1.148 and 1.149

version 1.148, 2015/08/28 12:16:28 version 1.149, 2015/08/28 13:01:03
Line 561 
Line 561 
         /* Update the activity timer. */          /* Update the activity timer. */
         if (gettimeofday(&c->activity_time, NULL) != 0)          if (gettimeofday(&c->activity_time, NULL) != 0)
                 fatal("gettimeofday failed");                  fatal("gettimeofday failed");
         memcpy(&s->last_activity_time, &s->activity_time,          session_update_activity(s, &c->activity_time);
             sizeof s->last_activity_time);  
         memcpy(&s->activity_time, &c->activity_time, sizeof s->activity_time);  
   
         /* Number keys jump to pane in identify mode. */          /* Number keys jump to pane in identify mode. */
         if (c->flags & CLIENT_IDENTIFY && key >= '0' && key <= '9') {          if (c->flags & CLIENT_IDENTIFY && key >= '0' && key <= '9') {
Line 981 
Line 979 
         struct msg_stdin_data    stdindata;          struct msg_stdin_data    stdindata;
         const char              *data;          const char              *data;
         ssize_t                  n, datalen;          ssize_t                  n, datalen;
           struct session          *s;
   
         if ((n = imsg_read(&c->ibuf)) == -1 || n == 0)          if ((n = imsg_read(&c->ibuf)) == -1 || n == 0)
                 return (-1);                  return (-1);
Line 1064 
Line 1063 
   
                         if (c->tty.fd == -1) /* exited in the meantime */                          if (c->tty.fd == -1) /* exited in the meantime */
                                 break;                                  break;
                           s = c->session;
   
                         if (gettimeofday(&c->activity_time, NULL) != 0)                          if (gettimeofday(&c->activity_time, NULL) != 0)
                                 fatal("gettimeofday");                                  fatal("gettimeofday");
                         if (c->session != NULL)                          if (s != NULL)
                                 session_update_activity(c->session);                                  session_update_activity(s, &c->activity_time);
   
                         tty_start_tty(&c->tty);                          tty_start_tty(&c->tty);
                         server_redraw_client(c);                          server_redraw_client(c);

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149