summaryrefslogtreecommitdiffstats
path: root/recipes-core/runx/runx/0001-runX-add-bounded-looping-timeout.patch
diff options
context:
space:
mode:
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.patch35
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 @@
1From 1cf4ff2137252c63687f54e09626850cfab6e9f9 Mon Sep 17 00:00:00 2001
2From: Rob Woolley <Rob.Woolley@windriver.com>
3Date: Thu, 17 Sep 2020 19:41:06 -0700
4Subject: [PATCH] runX: add bounded / looping timeout
5
6On slower machines, we may need a longer timeout before giving
7up.
8
9Signed-off-by: Rob Woolley <Rob.Woolley@windriver.com>
10---
11 git/runX | 8 +++++++-
12 1 file changed, 7 insertions(+), 1 deletion(-)
13
14diff --git a/runX b/runX
15index 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--
342.17.1
35