Without the timeout another kill is necessary

otherwise the process could stay running if the first `exit 1` after its
start was taken.
This commit is contained in:
Carlos Nihelton 2022-06-16 17:29:44 -03:00
parent 97f0f82910
commit d7697c0d0f
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
1 changed files with 1 additions and 0 deletions

View File

@ -242,6 +242,7 @@ if [ "${RELEASE%.*}" -ge 20 ]; then
done
if [ $next_time -eq 0 ]; then
echo "Timeout reached before Subiquity TCP socket started listening"
kill $subiquity_pid || true
exit 1
fi
loopback_failed=0