WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Increase timeout while waiting for console/tty node to a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Increase timeout while waiting for console/tty node to appear in the store:
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Mar 2006 13:14:14 +0000
Delivery-date: Tue, 21 Mar 2006 13:16:36 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Increase timeout while waiting for console/tty node to appear in the store:, Xen patchbot -unstable <=