summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-10-15 00:01:01 +0000
committernicm <nicm@openbsd.org>2016-10-15 00:01:01 +0000
commit10b426e0d8142a54ee59afeb8d59c2f810b0ac0f (patch)
tree30204a9bc4a5f513e37152dba04ee18cb477d64f /usr.bin/tmux/server.c
parentfix typo (diff)
downloadwireguard-openbsd-10b426e0d8142a54ee59afeb8d59c2f810b0ac0f.tar.xz
wireguard-openbsd-10b426e0d8142a54ee59afeb8d59c2f810b0ac0f.zip
Drain notifys once at the end of the server loop instead of doing it
from the end of every command queue (which could be nested).
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 4c5b75cdf25..d7d8f1edb6a 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.160 2016/10/10 21:29:23 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.161 2016/10/15 00:01:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -192,6 +192,7 @@ server_loop(void)
struct client *c;
server_client_loop();
+ notify_drain();
if (!options_get_number(global_options, "exit-unattached")) {
if (!RB_EMPTY(&sessions))