aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2005-12-07 11:47:46 +0000
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2005-12-07 11:47:46 +0000
commit497ff155b39ea6f8f56bf6108b89e1c87656dff4 (patch)
tree801d286f9b66222ee1ba6990a4e86b316790fddd /tools/console
parent2fd63647b40f87281eca6878eebeeac889b7d3e1 (diff)
downloadxen-497ff155b39ea6f8f56bf6108b89e1c87656dff4.tar.gz
xen-497ff155b39ea6f8f56bf6108b89e1c87656dff4.tar.bz2
xen-497ff155b39ea6f8f56bf6108b89e1c87656dff4.zip
Remove timeout on select -- there is no need for it, since we don't do anything
in the main loop except service I/O. Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/console')
-rw-r--r--tools/console/daemon/io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
index 90422557c8..4587c5f7db 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -545,7 +545,6 @@ void handle_io(void)
do {
struct domain *d, *n;
- struct timeval tv = { 100, 0 };
int max_fd = -1;
FD_ZERO(&readfds);
@@ -570,7 +569,7 @@ void handle_io(void)
}
}
- ret = select(max_fd + 1, &readfds, &writefds, 0, &tv);
+ ret = select(max_fd + 1, &readfds, &writefds, 0, NULL);
if (FD_ISSET(xs_fileno(xs), &readfds))
handle_xs(xs_fileno(xs));