summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-11-04 23:12:43 +0000
committernicm <nicm@openbsd.org>2009-11-04 23:12:43 +0000
commitbaf341fb0d99daed31ad088a09a5dd4d5d4b59de (patch)
tree8fa04e366cfee2a0d1a2ada89cf5f75149d01f40 /usr.bin/tmux/server.c
parentIt would help if I read my own comments... make alt keys work again by sending (diff)
downloadwireguard-openbsd-baf341fb0d99daed31ad088a09a5dd4d5d4b59de.tar.xz
wireguard-openbsd-baf341fb0d99daed31ad088a09a5dd4d5d4b59de.zip
Don't reenlist the client imsg event every loop, instead have a small function
to it and call it after the event triggers or after a imsg is added.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 4dd19e66968..e8c0b7dd0fa 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.70 2009/11/04 22:47:34 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.71 2009/11/04 23:12:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -160,11 +160,11 @@ server_start(char *path)
log_debug("socket path %s", socket_path);
setproctitle("server (%s)", rpathbuf);
+ event_init();
+
server_fd = server_create_socket();
server_client_create(pair[1]);
- event_init();
-
if (access(SYSTEM_CFG, R_OK) == 0) {
if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0)
goto error;
@@ -215,8 +215,6 @@ server_loop(void)
while (!server_should_shutdown()) {
server_update_socket();
- server_client_prepare();
-
event_loopexit(&tv);
event_loop(EVLOOP_ONCE);