opnsense-src/sys
Alexander Leidinger bb63fdde6d 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 after:	5 days
2010-11-22 09:06:59 +00:00
..
amd64 specialreg.h: add definitions for MPERF/APERF pair of MSRs 2010-11-19 15:07:36 +00:00
arm Provide a mutex around the read/modify/write of the IXP425_GPIO_* 2010-11-14 20:41:22 +00:00
boot Check the OF_getprop() return value before proceeding. Allocate only as 2010-11-20 19:23:16 +00:00
bsm Add audit events for process descriptor system calls, which will appear in 2009-09-29 21:25:59 +00:00
cam If HBA doesn't report user-enabled SATA capabilies (like ATA_CAM wrapper) - 2010-11-18 13:38:33 +00:00
cddl zfs+sendfile: populate all requested pages, not just those already cached 2010-11-16 15:53:44 +00:00
compat By using the 32-bit Linux version of Sun's Java Development Kit 1.6 2010-11-22 09:06:59 +00:00
conf Adds a USB packet filter feature to the stack that it could capture 2010-11-22 01:11:28 +00:00
contrib o) Recognize the Lanner MR-730. 2010-11-08 21:22:55 +00:00
crypto Only save FPU context when not executing in the context of the crypto 2010-11-17 16:17:15 +00:00
ddb One more use for _SIG_VALID. 2010-07-12 10:18:10 +00:00
dev Adds a USB packet filter feature to the stack that it could capture 2010-11-22 01:11:28 +00:00
fs Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
gdb there must be only one SYSINIT with SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY order 2010-09-30 17:05:23 +00:00
geom Add support for asterisk characters when filling in the GELI password 2010-11-14 14:12:43 +00:00
gnu Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
i386 In xen_get_timecount, return the full ns-precision time rather than 2010-11-22 09:04:29 +00:00
ia64 - Remove <machine/mutex.h>. Most of the headers were empty, and the 2010-11-09 20:46:41 +00:00
isa bus_add_child: change type of order parameter to u_int 2010-09-10 11:19:03 +00:00
kern By using the 32-bit Linux version of Sun's Java Development Kit 1.6 2010-11-22 09:06:59 +00:00
kgssapi When the KOBJMETHOD() macro was updated, it resulted in the 2009-06-14 17:33:46 +00:00
libkern Add support for asterisk characters when filling in the GELI password 2010-11-14 14:12:43 +00:00
mips Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
modules Adds a USB packet filter feature to the stack that it could capture 2010-11-22 01:11:28 +00:00
net Add a missing ';' and change the debugging sysctl from xint to int. 2010-11-21 19:33:19 +00:00
net80211 The ni_rctls checks are used to verify that a ratectl algo has set up 2010-11-14 09:59:52 +00:00
netatalk Reverse misordered unlock and lock in at_control for netatalk phase I 2009-08-12 10:44:13 +00:00
netgraph Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
netinet Fix a minor code redundancy nit. 2010-11-20 08:40:37 +00:00
netinet6 In case of an early return from the function there is no need to zero 2010-11-20 12:27:40 +00:00
netipsec Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
netipx Use queue(9) instead of hand-crafted link lists for the global IPX 2009-06-24 20:57:50 +00:00
netnatm Reimplement the netisr framework in order to support parallel netisr 2009-06-01 10:41:38 +00:00
netncp Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
netsmb Switch to our preferred 2-clause BSD license. 2010-04-07 16:50:38 +00:00
nfs Fix the type of the 3rd argument for nm_getinfo so that it works 2010-10-19 11:55:58 +00:00
nfsclient Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
nfsserver Fix a bug in r214049. The nvp == vp case shall be handled specially 2010-11-05 21:13:16 +00:00
nlm Modify the NFS clients and the NLM so that the NLM can be used 2010-10-19 00:20:00 +00:00
opencrypto Let cryptosoft(4) add its pseudo-device with a specific unit number and its 2010-11-14 13:09:32 +00:00
pc98 Move identical copies of apm_bios.h to sys/x86/include, replace them with 2010-11-11 19:36:21 +00:00
pci Remove standard PCI configuration space register definitions. 2010-11-08 22:10:51 +00:00
powerpc Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout 2010-11-14 20:38:11 +00:00
rpc Fix the krpc so that it can handle NFSv3,UDP mounts with a read/write 2010-10-13 00:57:14 +00:00
security Fix typos. 2010-11-09 10:59:09 +00:00
sparc64 Convert drivers somehow missed in r200874 to multipass probing. 2010-11-15 21:58:10 +00:00
sun4v Fix a few more places to use cpumask_t rather than 'u_int'. These are 2010-11-11 16:06:47 +00:00
sys Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
teken Partially implement the mysterious cons25 \e[x escape sequence. 2010-11-05 00:56:21 +00:00
tools Add an extra comment to the SDT probes definition. This allows us to get 2010-08-22 11:18:57 +00:00
ufs Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant. 2010-11-20 18:40:50 +00:00
vm Eliminate the mab, maf arrays and related variables. 2010-11-21 10:18:28 +00:00
x86 hwpstate: use CPU_FOREACH when binding to all available processors 2010-11-16 12:43:45 +00:00
xdr Add a check for a NULL mbuf ptr at the beginning of xdrmbuf_inline() 2009-08-12 16:27:51 +00:00
xen Improve the Xen para-virtualized device infrastructure of FreeBSD: 2010-10-19 20:53:30 +00:00
Makefile Add lex and yacc sources to things cscope'd. 2010-11-21 03:58:11 +00:00