mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
This commit is contained in:
1 parent
92b9cad184
commit
ef1189d806
1 file changed
+1
-1
@@ -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);
|
||||
|
||||