From ddedcf77e820a789331acce9bdfb5dc73d81b0ae Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 13 Sep 2023 09:35:02 +0200 Subject: [PATCH] Follow-up to 4701ede: reschedule bootstrap check while not done Non-trivial systems, like Infix[1], require more than one lap around the track to warm up. This is a follow-up to issue #362, commit 4701ede, in fixing an obvious oversight in the new sm_check_bootstrap() work. While there are still outstanding bootstrap tasks or services that have not yet started, we must reschedule the worker. Signed-off-by: Joachim Wiberg --- src/sm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sm.c b/src/sm.c index acc8f4d0..b99ab6bd 100644 --- a/src/sm.c +++ b/src/sm.c @@ -60,6 +60,7 @@ static void sm_check_bootstrap(void *work) if (cnt-- > 0 && !service_completed()) { dbg("Not all bootstrap run/tasks have completed yet ... %d", cnt); + schedule_work(work); return; }