Date: Sun, 11 Dec 2016 13:46:38 +0100 From: Jilles Tjoelker <jilles@stack.nl> To: Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, supervision@list.skarnet.org Subject: Re: NOTE_TRACK, EVFILT_PROC, kqueue, and subreapers Message-ID: <20161211124637.GA17315@stack.nl> In-Reply-To: <f5f47d55-ec8e-75b6-935d-2d0d1111c449@NTLWorld.com> References: <20161201172846.GP3428@protected.rcdrun.com> <20161201124118.46778e2b@mydesk.domain.cxm> <20161201174837.GR3428@protected.rcdrun.com> <20161201125438.15230317@mydesk.domain.cxm> <20161206104020.6b2ebb30@eto-mona.office.smartweb.sk> <20161206102637.1ddd152a@mydesk.domain.cxm> <20161207155638.4b2dd629@eto-mona.office.smartweb.sk> <630ace89-e29b-d0d3-9f15-110d8dc3de08@NTLWorld.com> <20161208132842.5d7940bd@eto-mona.office.smartweb.sk> <f5f47d55-ec8e-75b6-935d-2d0d1111c449@NTLWorld.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 08, 2016 at 08:23:29PM +0000, Jonathan de Boyne Pollard wrote: > 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? As reported in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213928 reapers do not receive SIGCHLD when inheriting zombies, although they do receive SIGCHLD when an inherited descendant process later terminates and are awakened when in a wait call for a matching process. This should probably be fixed. NOTE_TRACK has the inherent problem of what to do when NOTE_TRACKERR happens and has problems with process ID reuse, so it seems better to use reaper instead of it. -- Jilles Tjoelker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161211124637.GA17315>