summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-05 08:48:16 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-05 08:48:16 +0000
commitd2b5f6ec1ecb1e30ce5f13cf0d7c0dc0fd0fd333 (patch)
treeda19c89a2f0b182cdda66ab7e8a9c7bd20fbc5a9 /usr.bin/tmux/server.c
parentc821c4e927a4ba76c998a967a8359138017a6845 (diff)
Now all timers are events, there is no longer any need to wake up every 50 ms -
only wake up when an event happens.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 7a1fb83b05e..7b3b940eb1e 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.72 2009/11/04 23:42:51 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.73 2009/11/05 08:48:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -207,15 +207,10 @@ error:
void
server_loop(void)
{
- struct timeval tv;
-
- memset(&tv, 0, sizeof tv);
- tv.tv_usec = POLL_TIMEOUT * 1000;
-
while (!server_should_shutdown()) {
server_update_socket();
- event_loopexit(&tv);
+ event_loopexit(NULL);
event_loop(EVLOOP_ONCE);
server_window_loop();