diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-12-01 00:25:50 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-12-01 00:25:50 +0000 |
commit | 9208ca9d98c3d385e9895283ea808bc70317b6a0 (patch) | |
tree | 6b10c5b4d1036213a04ffc378605f09186134850 /sys | |
parent | a63454ab10a27287567c17a5e82ba2169821effb (diff) | |
download | FreeBSD-src-9208ca9d98c3d385e9895283ea808bc70317b6a0.zip FreeBSD-src-9208ca9d98c3d385e9895283ea808bc70317b6a0.tar.gz |
set signal queue values for sysconf().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 178493c..9d22723 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -76,6 +76,7 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_extern.h> #include <vm/uma.h> +#include <posix4/posix4.h> #include <machine/cpu.h> #if defined (__alpha__) && !defined(COMPAT_43) @@ -211,6 +212,9 @@ sigqueue_start(void) ksiginfo_zone = uma_zcreate("ksiginfo", sizeof(ksiginfo_t), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); uma_prealloc(ksiginfo_zone, preallocate_siginfo); + p31b_setcfg(CTL_P1003_1B_REALTIME_SIGNALS, _POSIX_REALTIME_SIGNALS); + p31b_setcfg(CTL_P1003_1B_RTSIG_MAX, SIGRTMAX - SIGRTMIN + 1); + p31b_setcfg(CTL_P1003_1B_SIGQUEUE_MAX, max_pending_per_proc); } ksiginfo_t * |