mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
svc_clean_dynamic(): Actually clean dirty services ...
Add missing call to svc_mark_clean() in while() loop. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
684314db0f
commit
718e82bc10
1 file changed
+3
-2
@@ -440,9 +440,10 @@ void svc_clean_dynamic(void (*cb)(svc_t *))
|
|||||||
svc_t *svc = svc_dynamic_iterator(1);
|
svc_t *svc = svc_dynamic_iterator(1);
|
||||||
|
|
||||||
while (svc) {
|
while (svc) {
|
||||||
if (svc->dirty == -1 && cb)
|
if (svc->dirty == -1 && cb) {
|
||||||
cb(svc);
|
cb(svc);
|
||||||
|
svc_mark_clean(svc);
|
||||||
|
}
|
||||||
svc = svc_dynamic_iterator(0);
|
svc = svc_dynamic_iterator(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user