On Fri, Nov 19, 2021 at 5:09 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> (gdb) print *writefds
> $3 = {fds_bits = {0 <repeats 16 times>}}
Oops, that was after it had been cleared already by the OS; duh. On
entry to my wrapper, writefds does in fact contain the bit pattern for
fd 13. That led me to try a very simply C program which runs to
completion on Linux and FreeBSD, but hangs forever on Dragonfly.