summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index e46c713eb5e..c60347bf458 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.43 2009/09/24 07:02:56 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.44 2009/10/05 18:30:54 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -90,6 +90,9 @@ server_create_client(int fd)
c = xcalloc(1, sizeof *c);
c->references = 0;
imsg_init(&c->ibuf, fd);
+
+ if (gettimeofday(&c->tv, NULL) != 0)
+ fatal("gettimeofday failed");
ARRAY_INIT(&c->prompt_hdata);