Live debug stopped but not yet collected tasks

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-10-11 21:56:49 +02:00
parent 474bd2f361
commit 586f0a7799
+5 -2
View File
@@ -313,9 +313,12 @@ int svc_stop_completed(void)
{
svc_t *svc;
for (svc = svc_iterator(1); svc; svc = svc_iterator(0))
if (svc->state == SVC_STOPPING_STATE)
for (svc = svc_iterator(1); svc; svc = svc_iterator(0)) {
if (svc->state == SVC_STOPPING_STATE) {
_e("Waiting to collect %s(%d) ...", svc->cmd, svc->pid);
return 0;
}
}
return 1;
}