aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console/client
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-21 11:56:11 +0100
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-03-21 11:56:11 +0100
commitef1189d8066d8f158e1b3491dc0849f566ec66cf (patch)
tree179540b0237dce3053cc74f86e40cd8375671d19 /tools/console/client
parent92b9cad184382f3ae471e6bf0a1b45d1e8897499 (diff)
downloadxen-ef1189d8066d8f158e1b3491dc0849f566ec66cf.tar.gz
xen-ef1189d8066d8f158e1b3491dc0849f566ec66cf.tar.bz2
xen-ef1189d8066d8f158e1b3491dc0849f566ec66cf.zip
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>
Diffstat (limited to 'tools/console/client')
-rw-r--r--tools/console/client/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/console/client/main.c b/tools/console/client/main.c
index f500a593ad..aba35ec2c6 100644
--- a/tools/console/client/main.c
+++ b/tools/console/client/main.c
@@ -242,7 +242,7 @@ int main(int argc, char **argv)
now = time(0);
while (str_pty == NULL && (now + 5) > time(0)) {
- struct timeval tv = { 0, 500 };
+ struct timeval tv = { 0, 250000 };
select(0, NULL, NULL, NULL, &tv); /* pause briefly */
str_pty = xs_read(xs, XBT_NULL, path, &len);