diff options
Diffstat (limited to 'recipes-core/runx/runx/0001-runX-add-bounded-looping-timeout.patch')
-rw-r--r-- | recipes-core/runx/runx/0001-runX-add-bounded-looping-timeout.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/recipes-core/runx/runx/0001-runX-add-bounded-looping-timeout.patch b/recipes-core/runx/runx/0001-runX-add-bounded-looping-timeout.patch deleted file mode 100644 index b4c6efaf..00000000 --- a/recipes-core/runx/runx/0001-runX-add-bounded-looping-timeout.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 1cf4ff2137252c63687f54e09626850cfab6e9f9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rob Woolley <Rob.Woolley@windriver.com> | ||
3 | Date: Thu, 17 Sep 2020 19:41:06 -0700 | ||
4 | Subject: [PATCH] runX: add bounded / looping timeout | ||
5 | |||
6 | On slower machines, we may need a longer timeout before giving | ||
7 | up. | ||
8 | |||
9 | Signed-off-by: Rob Woolley <Rob.Woolley@windriver.com> | ||
10 | --- | ||
11 | git/runX | 8 +++++++- | ||
12 | 1 file changed, 7 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/runX b/runX | ||
15 | index 492cb4c..70c95e1 100755 | ||
16 | --- a/runX | ||
17 | +++ b/runX | ||
18 | @@ -119,7 +119,13 @@ then | ||
19 | daemonize $workpath/serial_start \ | ||
20 | "$containerid" \ | ||
21 | "$crundir"/console_pty | ||
22 | - sleep .1 | ||
23 | + for n in 5 4 3 2 1; do | ||
24 | + if [ ! -l "$crundir"/console_pty ]; then | ||
25 | + break; | ||
26 | + else | ||
27 | + sleep .1; | ||
28 | + fi; | ||
29 | + done | ||
30 | daemonize $workpath/serial_fd_handler \ | ||
31 | "$guestconsole" \ | ||
32 | "$crundir"/console_pty | ||
33 | -- | ||
34 | 2.17.1 | ||
35 | |||