summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-08-23 17:36:32 +0000
committernicm <nicm@openbsd.org>2010-08-23 17:36:32 +0000
commit46f3f442c8c1cd69a5db4625b0de57409d440bb2 (patch)
tree813c5ecfe1c214e507bdbc871a5b3ee63a728baa /usr.bin/tmux/client.c
parentImplement bus_space_barrier() on sgi; on xbridge, this will also flush (diff)
downloadwireguard-openbsd-46f3f442c8c1cd69a5db4625b0de57409d440bb2.tar.xz
wireguard-openbsd-46f3f442c8c1cd69a5db4625b0de57409d440bb2.zip
Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
Diffstat (limited to 'usr.bin/tmux/client.c')
-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();