]> Sergey Matveev's repositories - bfs.git/commit
bftw: Fix to_close list corruption with !BFS_USE_UNWRAPDIR
authorTavian Barnes <tavianator@tavianator.com>
Thu, 12 Oct 2023 19:13:02 +0000 (15:13 -0400)
committerTavian Barnes <tavianator@tavianator.com>
Thu, 12 Oct 2023 19:13:02 +0000 (15:13 -0400)
commit773f4a446f03da62d88e6d17be49fdc0a3e38465
tree4f2520957b0ead54e9282bf3ad4f0a444d205ba1
parent1addab1e5f12cb0fddfa92872bf45653352cc212
bftw: Fix to_close list corruption with !BFS_USE_UNWRAPDIR

It's possible for pincount to drop to zero, then get incremented and
drop back to zero again.  If this happens, we shouldn't add it to the
to_close list twice.

This should fix the intermittent hang on the macOS CI.

Fixes: 815798e1eea7fc8dacd5acab40202ec4d251d517
src/bftw.c