summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-02-10 15:39:43 +0000
committernicm <nicm@openbsd.org>2017-02-10 15:39:43 +0000
commitde8c47244ee4ba0c2fdd3ce4c645d836b4a95ffa (patch)
tree9e077595b154431e22bc85747e4394069b70cd4c /usr.bin
parentRevert; committed from the wrong directory. (diff)
downloadwireguard-openbsd-de8c47244ee4ba0c2fdd3ce4c645d836b4a95ffa.tar.xz
wireguard-openbsd-de8c47244ee4ba0c2fdd3ce4c645d836b4a95ffa.zip
Add not delete the event if more to write.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 964275d00a4..e83f0350609 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.246 2017/02/10 15:39:14 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.247 2017/02/10 15:39:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -182,8 +182,8 @@ tty_write_callback(__unused int fd, __unused short events, void *data)
return;
log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size);
- if (EVBUFFER_LENGTH(tty->out) == 0)
- event_del(&tty->event_out);
+ if (EVBUFFER_LENGTH(tty->out) != 0)
+ event_add(&tty->event_out, NULL);
}
int