From f66219ab0bd9c1e7e71c27275ad790dba80f62c2 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 28 Sep 2020 14:38:17 +0930 Subject: Proone: die when pth_attr_of() fails --- src/proone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proone.c b/src/proone.c index 180da8f..7b195b5 100644 --- a/src/proone.c +++ b/src/proone.c @@ -508,7 +508,7 @@ static void reap_bne (void) { for (prne_llist_entry_t *e = bne_list.head; e != NULL;) { w = (prne_worker_t*)e->element; a = pth_attr_of(w->pth); - pth_attr_get(a, PTH_ATTR_STATE, &st); + prne_assert(pth_attr_get(a, PTH_ATTR_STATE, &st)); pth_attr_destroy(a); if (st == PTH_STATE_DEAD) { -- cgit