-
Committer:
Paul Jakma
-
Author(s):
Paul Jakma
-
Date:
2018-03-04 13:23:22 UTC
-
Revision ID:
git-v1:1f918980c08d9fb9215609db39f7fb279c2e1807
lib/thread: Address other paths from thread_execute to thread_add_unuse
* lib/thread.c: There are further paths from thread_execute to
thread_add_unuse, beyond that from bugzilla bug#975.
Make the paths from thread_execute to thread_add_unuse, inc.
thread_add_unuse itself, tolerant to the "dummy" threads of
thread_execute.
Another option would be to have thread_execute properly obtain a
thread struct, rather than fake one on its heap.
(thread_add_unuse) Be tolerant of NULL master threads passed in, that
/ought/ to be dummy/non-heap threads, and just ignore. Don't assert.
(thread_call) no point checking for NULL master here anymore.
See https://bugzilla.quagga.net/show_bug.cgi?id=977
With thanks to John Hay, john@sanren.ac.za, for testing and verifying
the fix.