diff --git a/server.c b/server.c index 7b0926fa..c70fea0d 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.223 2009-11-08 23:12:35 tcunha Exp $ */ +/* $Id: server.c,v 1.224 2009-11-08 23:27:58 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -211,15 +211,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(); diff --git a/tmux.h b/tmux.h index 9c574dd7..e8734862 100644 --- a/tmux.h +++ b/tmux.h @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.508 2009-11-08 23:26:56 tcunha Exp $ */ +/* $Id: tmux.h,v 1.509 2009-11-08 23:27:58 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -61,9 +61,6 @@ extern char **environ; /* Escape timer period, in milliseconds. */ #define ESCAPE_PERIOD 500 -/* Maximum poll timeout (when attached). */ -#define POLL_TIMEOUT 50 - /* Maximum data to buffer for output before suspending reading from panes. */ #define BACKOFF_THRESHOLD 1024