https://bugs.openldap.org/show_bug.cgi?id=9847
--- Comment #9 from Howard Chu hyc@openldap.org ---
NetBSD does not have a patch like this in pkgsrc but I found a fairly
recent list post suggests the child does not (at least as on 2021/09) inherit the kqueue fd on fork - so it's unclear how things are working in there, if indeed things *are* working there. https://mail-index.netbsd.org/netbsd-users/2021/09/30/msg027833.html
The post makes some good points. The child process is supposed to be identical to the parent process after a fork, but this behavior means the child's descriptor table is quite different from the parent's. Whoever designed this kqueue interface really dropped the ball.