From 586f0a7799a7a7627026b67fc4537bdd95d70f0a Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 11 Oct 2017 21:56:49 +0200 Subject: [PATCH] Live debug stopped but not yet collected tasks Signed-off-by: Joachim Nilsson --- src/svc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/svc.c b/src/svc.c index 073d1234..0a9b6dd4 100644 --- a/src/svc.c +++ b/src/svc.c @@ -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; }