]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ctfmerge: Fix missing pthread_cond_init()
authorAlex Richardson <arichardson@FreeBSD.org>
Thu, 6 Aug 2020 20:44:40 +0000 (20:44 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 6 Aug 2020 20:44:40 +0000 (20:44 +0000)
commit5ac01ce026aa871e24065f931b5b5c36024c96f9
treeadbe56cca88a71404738cffdceccd3cfff160310
parentdd7660e5bdfb6510c993f066723b1669c14ceec6
ctfmerge: Fix missing pthread_cond_init()

This does not appear to matter on FreeBSD or Linux, but when building an
amd64 kernel on macOS I was seeing infinite loops in ctfmerge.
It turns out the loop in wip_save_work() was looping forever due to
pthread_cond_wait() always returning -EINVAL.

Reviewed By: markj, brooks
Differential Revision: https://reviews.freebsd.org/D25973
cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c