From owner-freebsd-stable Wed Sep 6 14:38: 3 2000 Delivered-To: freebsd-stable@freebsd.org Received: from kci.kciLink.com (kci.kciLink.com [204.117.82.1]) by hub.freebsd.org (Postfix) with ESMTP id 81C8637B424 for ; Wed, 6 Sep 2000 14:37:58 -0700 (PDT) Received: from onceler.kciLink.com (onceler.kciLink.com [204.117.82.2]) by kci.kciLink.com (Postfix) with ESMTP id CF4C2E881; Wed, 6 Sep 2000 17:37:57 -0400 (EDT) Received: (from khera@localhost) by onceler.kciLink.com (8.11.0/8.11.0) id e86Lbv841813; Wed, 6 Sep 2000 17:37:57 -0400 (EDT) (envelope-from khera) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14774.47413.520585.194330@onceler.kciLink.com> Date: Wed, 6 Sep 2000 17:37:57 -0400 (EDT) To: Mikko Tyolajarvi Cc: Cy.Schubert@uumail.gov.bc.ca, freebsd-stable@freebsd.org Subject: Re: running lyris for linux makes many zombies Newsgroups: local.freebsd-stable In-Reply-To: <200009062036.NAA19883@explorer.rsa.com> References: <14774.30930.120103.685216@onceler.kciLink.com> <200009061756.e86Huaa75647@cwsys.cwsent.com> <200009062036.NAA19883@explorer.rsa.com> X-Mailer: VM 6.72 under 21.1 (patch 11) "Carlsbad Caverns" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "MT" == Mikko Tyolajarvi writes: MT> On SYSV (and Linux) doing "signal(SIGCHLD, SIG_IGN)" is sufficient to MT> get rid of zombies. On BSD, you have to use sigaction() with the MT> SA_NOCLDWAIT flag to get the same result. MT> (Two minutes later) MT> Yes, the following Q&D program does not leave a zombie child on linux. MT> But when the linux-compiled binary is run under the linuxulator, it MT> does leave a zombie. MT> I.e. linuxulator bug. Could some kind of wrapper program be written to make children disappear like this and then exec lyris? I suspect not since grandchildren don't signal up to the grandparent, but I'm not that familiar with signal handling. Any kind of fix would be appreciated. Right now I'm restarting the process every 6 hours to keep zombies limited in number. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-301-545-6996 GPG & MIME spoken here http://www.khera.org/~vivek/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message