[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.98 and 1.99

version 1.98, 2010/12/30 23:16:18 version 1.99, 2011/01/01 01:12:09
Line 494 
Line 494 
   
         t = time(NULL);          t = time(NULL);
         RB_FOREACH(s, sessions, &sessions) {          RB_FOREACH(s, sessions, &sessions) {
                 if (s->flags & SESSION_UNATTACHED) {                  if (s->flags & SESSION_UNATTACHED)
                         if (gettimeofday(&s->activity_time, NULL) != 0)  
                                 fatal("gettimeofday failed");  
                         continue;                          continue;
                 }  
   
                 timeout = options_get_number(&s->options, "lock-after-time");                  timeout = options_get_number(&s->options, "lock-after-time");
                 if (timeout <= 0 || t <= s->activity_time.tv_sec + timeout)                  if (timeout <= 0 || t <= s->activity_time.tv_sec + timeout)
                         return; /* not timed out */                          return; /* not timed out */
Line 519 
Line 515 
   
         t = time(NULL);          t = time(NULL);
         RB_FOREACH(s, sessions, &sessions) {          RB_FOREACH(s, sessions, &sessions) {
                 if (s->flags & SESSION_UNATTACHED) {                  if (s->flags & SESSION_UNATTACHED)
                         if (gettimeofday(&s->activity_time, NULL) != 0)  
                                 fatal("gettimeofday failed");  
                         continue;                          continue;
                 }  
   
                 timeout = options_get_number(&s->options, "lock-after-time");                  timeout = options_get_number(&s->options, "lock-after-time");
                 if (timeout > 0 && t > s->activity_time.tv_sec + timeout) {                  if (timeout > 0 && t > s->activity_time.tv_sec + timeout) {
                         server_lock_session(s);                          server_lock_session(s);

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99