ia64/xen-unstable

changeset 8264:eae64901e428

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>
author emellor@leeni.uk.xensource.com
date Wed Dec 07 11:47:46 2005 +0000 (2005-12-07)
parents 6b6e09240435
children 653d38c8fbc8
files tools/console/daemon/io.c
line diff
     1.1 --- a/tools/console/daemon/io.c	Wed Dec 07 10:54:57 2005 +0000
     1.2 +++ b/tools/console/daemon/io.c	Wed Dec 07 11:47:46 2005 +0000
     1.3 @@ -545,7 +545,6 @@ void handle_io(void)
     1.4  
     1.5  	do {
     1.6  		struct domain *d, *n;
     1.7 -		struct timeval tv = { 100, 0 };
     1.8  		int max_fd = -1;
     1.9  
    1.10  		FD_ZERO(&readfds);
    1.11 @@ -570,7 +569,7 @@ void handle_io(void)
    1.12  			}
    1.13  		}
    1.14  
    1.15 -		ret = select(max_fd + 1, &readfds, &writefds, 0, &tv);
    1.16 +		ret = select(max_fd + 1, &readfds, &writefds, 0, NULL);
    1.17  
    1.18  		if (FD_ISSET(xs_fileno(xs), &readfds))
    1.19  			handle_xs(xs_fileno(xs));