From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 30 21:57:55 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3770016A601 for ; Tue, 30 Jan 2007 21:57:55 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8BC13C4A5 for ; Tue, 30 Jan 2007 21:57:54 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0ULvqLb087245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 Jan 2007 22:57:52 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0ULvqmM087244 for freebsd-emulation@freebsd.org; Tue, 30 Jan 2007 22:57:52 +0100 (CET) Date: Tue, 30 Jan 2007 22:57:52 +0100 From: Divacky Roman To: freebsd-emulation@freebsd.org Message-ID: <20070130215752.GA86572@stud.fit.vutbr.cz> References: <20070128233230.GA4347@mail.scottro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070128233230.GA4347@mail.scottro.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Subject: [PATCH] linux 2.6.16 causes zombie processes with linux-opera X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2007 21:57:55 -0000 On Sun, Jan 28, 2007 at 06:32:30PM -0500, Scott Robbins wrote: > As near as I can determine, this only happens if I set the sysctl > compat.linux.osrelease to 2.6.16. > > This is on a system running CURRENT > > (7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jan 25 20:30:57 EST 2007) > > When I close linux opera, a zombied process remains. The parent PID is > 1. > > Each time I open and then close opera, one and sometimes two, zombied > processes remain. > > Therefore, if I've been browsing the web on and off for awhile, and do a > pgrep opera, I might have a list of 20 or more PIDs, all zombies. please.. can you try this patch: --- /tmp/tmp.970.0 Tue Jan 30 22:56:18 2007 +++ /root/projects/linuxolator/src/sys/compat/linux/linux_emul.c Tue Jan 30 22:56:15 2007 @@ -165,6 +165,16 @@ KASSERT(em != NULL, ("proc_exit: emuldata not found.\n")); + /* reparent all non thread leaders to initproc */ + if (em->shared->group_pid != p->p_pid) { + sx_xlock(&proctree_lock); + wakeup(initproc); + PROC_LOCK(p); + proc_reparent(p, initproc); + PROC_UNLOCK(p); + sx_xunlock(&proctree_lock); + } + child_clear_tid = em->child_clear_tid; EMUL_UNLOCK(&emul_lock); ignore the LOR for now and tell me if there's any difference with the opera behaviour. I cant test now myself ;( roman