[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Increase timeout while waiting for console/tty node to appear in the store:



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID a013fa6ee37cbde547e101b8fff2aa2579cad11c
# Parent  a66c48bdf9c38895de32e14f56a838e8230a7250
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@xxxxxxxxxxxxx>

diff -r a66c48bdf9c3 -r a013fa6ee37c tools/console/client/main.c
--- a/tools/console/client/main.c       Tue Mar 21 10:49:29 2006
+++ b/tools/console/client/main.c       Tue Mar 21 10:56:11 2006
@@ -242,7 +242,7 @@
 
        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);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.