diff options
author | 2010-08-23 17:36:32 +0000 | |
---|---|---|
committer | 2010-08-23 17:36:32 +0000 | |
commit | 46f3f442c8c1cd69a5db4625b0de57409d440bb2 (patch) | |
tree | 813c5ecfe1c214e507bdbc871a5b3ee63a728baa /usr.bin/tmux/client.c | |
parent | Implement bus_space_barrier() on sgi; on xbridge, this will also flush (diff) | |
download | wireguard-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.c | 3 |
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(); |