summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-08-04 11:48:34 +0530
committerAmit Shah <amit.shah@redhat.com>2010-08-04 11:48:34 +0530
commit2c799e07ca9327ef662896c01856f2f6f5c0229d (patch)
treef0342a185ce23b3b627ef5e7ed2f7ff0b966e2b8
parentdf1dffac7af7353610e6bd331b425eacd6f863df (diff)
downloadtest-virtserial-2c799e07ca9327ef662896c01856f2f6f5c0229d.tar.gz
test-virtserial-2c799e07ca9327ef662896c01856f2f6f5c0229d.tar.xz
test-virtserial-2c799e07ca9327ef662896c01856f2f6f5c0229d.zip
auto-virtserial: Wait for 90s instead of 40s for guest contact
RHEL5 guests are slow to start. 90s seems to be a good timeout to get contact from the guest. Haven't yet measured how much it really takes or even tried to optimise rhel5 booting beyond disabling unnecessary services. Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r--auto-virtserial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto-virtserial.c b/auto-virtserial.c
index ea749f8..9503f74 100644
--- a/auto-virtserial.c
+++ b/auto-virtserial.c
@@ -1366,8 +1366,8 @@ int main(int argc, const char *argv[])
pollfd[0].fd = chardevs[1].sock;
pollfd[0].events = POLLIN;
- /* Wait for 40s max. to see if guest tries to reach us */
- ret = poll(pollfd, 1, 40000);
+ /* Wait for 90s max. to see if guest tries to reach us */
+ ret = poll(pollfd, 1, 90000);
if (ret == -1)
error(errno, errno, "poll %s", chardevs[1].path);
if (ret == 0) {