Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error.c: make our 'global' state be thread local
Because the error log array can be changed in any call, it could be modified by more than one thread at once. This means that the results won't make any sense - even absent actual execution errors as a result, the best case is intermixed error logs from different threads. This makes the error log pointer thread local, so that each thread will effectively get its own error log. Fixes github issue rhboot#154 Signed-off-by: Peter Jones <pjones@redhat.com>
- Loading branch information