ia64/xen-unstable

changeset 9366:a013fa6ee37c

Increase timeout while waiting for console/tty node to appear in the store:
the intention appears to have been 500msec, but struct timeval when used with
a select() is in usec, not msec. The timeout has been set to 250msec (500msec
seems a little long, in any case).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Mar 21 11:56:11 2006 +0100 (2006-03-21)
parents a66c48bdf9c3
children 14c26df4f33c
files tools/console/client/main.c
line diff
     1.1 --- a/tools/console/client/main.c	Tue Mar 21 11:49:29 2006 +0100
     1.2 +++ b/tools/console/client/main.c	Tue Mar 21 11:56:11 2006 +0100
     1.3 @@ -242,7 +242,7 @@ int main(int argc, char **argv)
     1.4  
     1.5  	now = time(0);
     1.6  	while (str_pty == NULL && (now + 5) > time(0)) {
     1.7 -		struct timeval tv = { 0, 500 };
     1.8 +		struct timeval tv = { 0, 250000 };
     1.9  		select(0, NULL, NULL, NULL, &tv); /* pause briefly */
    1.10  
    1.11  		str_pty = xs_read(xs, XBT_NULL, path, &len);