diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-08-29 08:54:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-08-29 08:54:42 +0000 |
commit | d943c4eeadbe6211663e830081ced8e72fb2ca8a (patch) | |
tree | bc7c70733d7e2c40c72421c348226dc20deb860d /usr.bin/tmux/server.c | |
parent | 1ce284cec8d97398f43fbf909e6b1c8ca6fd76c2 (diff) |
We already loop over the windows in server_client_loop, so don't do it
again in server_loop just to check names.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 50fe4e1e03f..8723c05cf0b 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.136 2015/08/29 08:30:54 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.137 2015/08/29 08:54:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -249,13 +249,11 @@ server_start(int lockfd, char *lockfile) void server_loop(void) { - struct window *w; - while (!server_should_shutdown()) { + log_debug("event dispatch enter"); event_loop(EVLOOP_ONCE); + log_debug("event dispatch exit"); - RB_FOREACH(w, windows, &windows) - check_window_name(w); server_client_loop(); } } |