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

Diff for /src/usr.bin/tmux/session.c between version 1.26 and 1.27

version 1.26, 2010/12/30 23:16:18 version 1.27, 2011/01/01 01:12:09
Line 97 
Line 97 
   
         if (gettimeofday(&s->creation_time, NULL) != 0)          if (gettimeofday(&s->creation_time, NULL) != 0)
                 fatal("gettimeofday failed");                  fatal("gettimeofday failed");
         memcpy(&s->activity_time, &s->creation_time, sizeof s->activity_time);          session_update_activity(s);
   
         s->cwd = xstrdup(cwd);          s->cwd = xstrdup(cwd);
   
Line 162 
Line 162 
         xfree(s->cwd);          xfree(s->cwd);
   
         RB_INSERT(sessions, &dead_sessions, s);          RB_INSERT(sessions, &dead_sessions, s);
   }
   
   /* Update session active time. */
   void
   session_update_activity(struct session *s)
   {
           if (gettimeofday(&s->activity_time, NULL) != 0)
                   fatal("gettimeofday");
 }  }
   
 /* Find the next usable session. */  /* Find the next usable session. */

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27