Martin "eto" Misuth:
I think that might be the reason why my PID1 s6-svscan on FreeBSD is
accumulating zombies sometimes (seems like it is affected by dead
descendants of ssh and my experiments). [...]
Anyway as you are probably much closer to FreeBSD team than I am, [...]
I'm not. You have the same access as I and the rest of the world have.
For what it's worth, I've seen similar behaviour with zombies lying
around. If we can nail it down you can file a kernel bug report.
Have you checked that you aren't getting a NOTE_EXIT?