From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 10 23:40:03 2010 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A9931065670 for ; Wed, 10 Mar 2010 23:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 797A78FC16 for ; Wed, 10 Mar 2010 23:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2ANe3I5077444 for ; Wed, 10 Mar 2010 23:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2ANe30C077443; Wed, 10 Mar 2010 23:40:03 GMT (envelope-from gnats) Date: Wed, 10 Mar 2010 23:40:03 GMT Message-Id: <201003102340.o2ANe30C077443@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Stefan Schmidt Cc: Subject: Re: kern/141439: linux_exit_group kills group leader X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stefan Schmidt List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 23:40:03 -0000 The following reply was made to PR kern/141439; it has been noted by GNATS. From: Stefan Schmidt To: Gleb Kurtsou Cc: bug-followup@FreeBSD.org Subject: Re: kern/141439: linux_exit_group kills group leader Date: Thu, 11 Mar 2010 00:35:20 +0100 Hi Gleb, On 22.02.2010 03:06, Gleb Kurtsou wrote: > I've experienced the same problem with sun jdk. I think approach of not > killing group leader is incorrect, it should also be killed. Your patch > works because linux_exit_group is called for the second time when only > group leader is available. Such behavior is not expected, control should > not return to userspace from linux_exit_group. I agree - thanks for explaining. > I've submitted another PR, it contains fixes for 2 linux exec bugs. > I've followed NetBSD and patched exit1() to allow process exit status to > be changed by event handlers. > > Would appreciate if you could test the patch: > http://www.freebsd.org/cgi/query-pr.cgi?pr=144194 Your patch works fine for me (RELENG_8). Kind regards Stefan