summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-08-23 17:36:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-08-23 17:36:33 +0000
commitb69f6746dfb83e4d37f7672cd2440c6d23004433 (patch)
treefc2b7ef549e507de2f1f728506bde4ce9b5e0198 /usr.bin/tmux
parent3cdce6c7680cd4abc987f2e52bfd42e4e9408aba (diff)
Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c
index 397edd98e2b..bbd0ae03999 100644
--- a/usr.bin/tmux/client.c
+++ b/usr.bin/tmux/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.43 2010/08/22 16:09:49 nicm Exp $ */
+/* $OpenBSD: client.c,v 1.44 2010/08/23 17:36:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -93,6 +93,7 @@ server_started:
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
fatal("fcntl failed");
imsg_init(&client_ibuf, fd);
+ event_set(&client_event, fd, EV_READ, client_callback, NULL);
if (cmdflags & CMD_SENDENVIRON)
client_send_environ();