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:
emellor@leeni.uk.xensource.com committed 2006-03-21 11:56:11 +01:00
1 parent 92b9cad184
commit ef1189d806
1 file changed
+1 -1
+1 -1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.