diff options
author | David Timber <mieabby@gmail.com> | 2020-09-28 14:38:17 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-28 14:38:17 +0930 |
commit | f66219ab0bd9c1e7e71c27275ad790dba80f62c2 (patch) | |
tree | 5697568b1123b0ae182e80432990cc2e779c39fb /src | |
parent | 39c944e091e315831e92e89d784c0bcd1d345749 (diff) |
Proone: die when pth_attr_of() fails
Diffstat (limited to 'src')
-rw-r--r-- | src/proone.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |