Date: Wed, 2 Mar 2011 09:53:13 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/compat/linux linux_emul.c linux_emul.h linux_misc.c src/sys/kern kern_exit.c Message-ID: <201103020953.p229rZUB004819@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
netchild 2011-03-02 09:53:13 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/compat/linux linux_emul.c linux_emul.h linux_misc.c sys/kern kern_exit.c Log: SVN rev 219173 on 2011-03-02 09:53:13Z by netchild MFC r215664: 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 <stefan.schmidt@stadtbuch.de>, gk Reviewed by: rdivacky (in april 2010) MFC r215675: Do not take the process lock. The assignment to u_short inside the properly aligned structure is atomic on all supported architectures, and the thread that should see side-effect of assignment is the same thread that does assignment. Use a more appropriate conditional to detect the linux ABI. Suggested by: kib Revision Changes Path 1.23.2.2 +36 -1 src/sys/compat/linux/linux_emul.c 1.10.2.2 +5 -0 src/sys/compat/linux/linux_emul.h 1.240.2.7 +10 -21 src/sys/compat/linux/linux_misc.c 1.330.2.6 +2 -1 src/sys/kern/kern_exit.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103020953.p229rZUB004819>