From owner-cvs-src-old@FreeBSD.ORG Mon Nov 22 09:07:34 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 707701065672 for ; Mon, 22 Nov 2010 09:07:34 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5CD508FC16 for ; Mon, 22 Nov 2010 09:07:34 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAM97YJC001094 for ; Mon, 22 Nov 2010 09:07:34 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAM97YbS001093 for cvs-src-old@freebsd.org; Mon, 22 Nov 2010 09:07:34 GMT (envelope-from netchild@repoman.freebsd.org) Message-Id: <201011220907.oAM97YbS001093@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to netchild@repoman.freebsd.org using -f From: Alexander Leidinger Date: Mon, 22 Nov 2010 09:06:59 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/linux linux_emul.c linux_emul.h linux_misc.c src/sys/kern kern_exit.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 09:07:34 -0000 netchild 2010-11-22 09:06:59 UTC FreeBSD src repository Modified files: sys/compat/linux linux_emul.c linux_emul.h linux_misc.c sys/kern kern_exit.c Log: SVN rev 215664 on 2010-11-22 09:06:59Z by netchild By using the 32-bit Linux version of Sun's Java Development Kit 1.6 on FreeBSD (amd64), invocations of "javac" (or "java") eventually end with the output of "Killed" and exit code 137. This is caused by: 1. After calling exec() in multithreaded linux program threads are not destroyed and continue running. They get killed after program being executed finishes. 2. linux_exit_group doesn't return correct exit code when called not from group leader. Which happens regularly using sun jvm. The submitters fix this in a similar way to how NetBSD handles this. I took the PRs away from dchagin, who seems to be out of touch of this since a while (no response from him). The patches committed here are from [2], with some little modifications from me to the style. PR: 141439 [1], 144194 [2] Submitted by: Stefan Schmidt , gk Reviewed by: rdivacky (in april 2010) MFC after: 5 days Revision Changes Path 1.24 +38 -1 src/sys/compat/linux/linux_emul.c 1.11 +5 -0 src/sys/compat/linux/linux_emul.h 1.244 +10 -21 src/sys/compat/linux/linux_misc.c 1.338 +2 -1 src/sys/kern/kern_exit.c