From owner-freebsd-stable Fri Sep 15 11:44:53 2000 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id E56CE37B42C for ; Fri, 15 Sep 2000 11:44:49 -0700 (PDT) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id LAA06942; Fri, 15 Sep 2000 11:44:46 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda06940; Fri Sep 15 11:44:44 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.9.3/8.9.1) id LAA58749; Fri, 15 Sep 2000 11:44:44 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpds58747; Fri Sep 15 11:44:37 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.0/8.9.1) id e8FIiaG25369; Fri, 15 Sep 2000 11:44:36 -0700 (PDT) Message-Id: <200009151844.e8FIiaG25369@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdv25363; Fri Sep 15 11:43:58 2000 X-Mailer: exmh version 2.1.1 10/15/1999 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1-RELEASE X-Sender: cy To: Vivek Khera Cc: FreeBSD-Stable Subject: Re: negative proccnt In-reply-to: Your message of "Fri, 15 Sep 2000 12:19:37 EDT." <14786.19481.624232.842198@onceler.kciLink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 15 Sep 2000 11:43:58 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <14786.19481.624232.842198@onceler.kciLink.com>, Vivek Khera writes: > >>>>> "CS" == Cy Schubert <- ITSD Open Systems Group bc.ca>> writes: > > >> The native FreeBSD version is allegedly coming out in the next couple > >> of weeks, so that should solve my zombie problem, and I'll be happier. > > CS> One can solve zombies in canned software by using a binary editor like > CS> emacs to replace the external symbol for fork() with _frk(), then > CS> create a _frk() function that will fork() and issue a signal() to trap > CS> all SIGCHLD prior to the first fork it issues. When catching a > CS> SIGCHLD, just issue wait(). Then load the module using LD_PRELOAD > CS> prior to executing the desired application. > > Wow... will this work with a static linux binary as well? > Unfortunately lyris for linux is a static binary... Unfortunately no. This only works with dynamically linked binaries. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message