qosmngr: avoid potential race condition

Wait for background task to finish before reloading in the foreground.
This commit is contained in:
Erik Karlsson 2025-03-19 09:51:29 +01:00
parent 083cbd7b56
commit 73dfc49647

View file

@ -43,7 +43,10 @@ restart() {
start
}
reload_service()
{
reload_service() {
while procd_running qos init_qos; do
sleep 1
done
reload_qos_service
}