HomeFreeBSD

ctfmerge: fix segfault when building on macOS

Description

ctfmerge: fix segfault when building on macOS

The barrier code was using semaphores which have been deprecated in
macOS and not working at all, causing a race condition. Since macOS
does not have pthread_barrier_*(), this change uses a condition
variable instead.

PR: 290958
Reported by: wosch
MFC after: 2 weeks
Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D54018

Details

Provenance
mpAuthored on Dec 1 2025, 8:50 PM
Reviewer
imp
Differential Revision
D54018: ctfmerge: fix segfault when building on macOS
Parents
rG8d9a5d44b155: evdev: Sync event codes with Linux kernel 6.18
Branches
Unknown
Tags
Unknown