From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1479 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit not collecting zombies Date: Thu, 12 Jul 2007 11:11:56 -0400 (EDT) Message-ID: References: <20070619181325.23252.qmail@a92f927aabd53f.315fe32.mid.smarden.org> <20070619190751.GC27090@home.power> <20070620162325.26345.qmail@7d91355cde742c.315fe32.mid.smarden.org> <20070620165736.GC12963@home.power> <20070620183532.4571.qmail@9f638fd8b69905.315fe32.mid.smarden.org> <20070623044205.GA1594@home.power> <20070626095920.6195.qmail@3e147d410b1c2c.315fe32.mid.smarden.org> <20070707071657.GA1517@home.power> <20070712144913.GD23517@home.power> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1184253126 25843 80.91.229.12 (12 Jul 2007 15:12:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 15:12:06 +0000 (UTC) Cc: supervision@list.skarnet.org To: Alex Efros Original-X-From: supervision-return-1716-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jul 12 17:12:04 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1I90Kk-0004iG-Rm for gcsg-supervision@gmane.org; Thu, 12 Jul 2007 17:11:58 +0200 Original-Received: (qmail 5664 invoked by uid 76); 12 Jul 2007 15:12:20 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 5658 invoked from network); 12 Jul 2007 15:12:19 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com In-Reply-To: <20070712144913.GD23517@home.power> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1479 Archived-At: On Thu, 12 Jul 2007, Alex Efros wrote: > On Thu, Jul 12, 2007 at 10:42:18AM -0400, Charlie Brady wrote: >> A common method of avoiding zombie processes is for a SIGCHILD handler in >> the parent to reap the status. I wonder whether there is possibility for >> SIGCHILD to be queued to the wrong process (due to a race during >> reparenting). Does runit as process 1 depend on SIGCHILD to reap zombies? > > Yeah, this is possible. But, anyway, it's a race in kernel or runit, > which must be fixed there. > > With last patch runit try reaping every 5 seconds, instead of depending on > SIGCHLD. For now (uptime 5 days) there no zombies on my servers. This is > ugly workaround, of course. If you have fixed your cron job as I suggested, you will no longer have the reaping race, so you should never see any such zombies.