summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-03 20:29:47 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-03 20:29:47 +0000
commit5289da29ba2fdf15413ec94fa7f2838469abccae (patch)
treeaa229c5c632273d18bd8c0f8729994f0c514327f /session.c
parentc95f1d1ff951fdfea9057952ecadb25884ba8daa (diff)
Change session and client activity and creation time members to have more
meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index a477634e..8d22ac77 100644
--- a/session.c
+++ b/session.c
@@ -126,10 +126,10 @@ session_create(const char *name, const char *cmd, const char *cwd,
s = xmalloc(sizeof *s);
s->references = 0;
s->flags = 0;
- s->activity = time(NULL);
- if (gettimeofday(&s->tv, NULL) != 0)
+ if (gettimeofday(&s->creation_time, NULL) != 0)
fatal("gettimeofday failed");
+ memcpy(&s->activity_time, &s->creation_time, sizeof s->activity_time);
s->curw = NULL;
TAILQ_INIT(&s->lastw);