kern/141439: linux_exit_group kills group leader
Stefan Schmidt
stefan.schmidt at stadtbuch.de
Wed Mar 10 23:40:03 UTC 2010
The following reply was made to PR kern/141439; it has been noted by GNATS.
From: Stefan Schmidt <stefan.schmidt at stadtbuch.de>
To: Gleb Kurtsou <gleb.kurtsou at gmail.com>
Cc: bug-followup at 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
More information about the freebsd-emulation
mailing list