]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ctfmerge: Fix missing pthread_cond_init()
authorarichardson <arichardson@FreeBSD.org>
Thu, 6 Aug 2020 20:44:40 +0000 (20:44 +0000)
committerarichardson <arichardson@FreeBSD.org>
Thu, 6 Aug 2020 20:44:40 +0000 (20:44 +0000)
commitc89385028989588e595d332374ad95d4dddde59a
treeadbe56cca88a71404738cffdceccd3cfff160310
parent7465c9df0b5b18e9ab32af1fe457cfa20fa84633
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