mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
qosmngr: avoid potential race condition
Wait for background task to finish before reloading in the foreground.
This commit is contained in:
parent
083cbd7b56
commit
73dfc49647
1 changed files with 5 additions and 2 deletions
|
|
@ -43,7 +43,10 @@ restart() {
|
|||
start
|
||||
}
|
||||
|
||||
reload_service()
|
||||
{
|
||||
reload_service() {
|
||||
while procd_running qos init_qos; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
reload_qos_service
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue