]> Zhao Yanbai Git Server - minix.git/commit
Use correct value for _NSIG
authorThomas Veerman <thomas@minix3.org>
Mon, 16 Jan 2012 11:42:29 +0000 (11:42 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 16 Jan 2012 11:42:29 +0000 (11:42 +0000)
commita6d0ee24c30b8832fb4b2ad56f0b3d6cd430529a
treeda1242d8db10fde2287dc6a93f723dc4a32c6bdc
parenta282e942bf64856830575ac7382911fa81f9d708
Use correct value for _NSIG

User processes can send signals with number up to _NSIG. There are a few
signal numbers above that used by the kernel, but should explicitly not
be included in the range or range checks in PM will fail.

The system processes use a different version of sigaddset, sigdelset,
sigemptyset, sigfillset, and sigismember which does not include a range
check on signal numbers (as opposed to the normal functions used by normal
processes).

This patch unbreaks test37 when the boot image is compiled with GCC/Clang.
kernel/system.c
nbsd_include/signal.h
nbsd_include/sys/signal.h
servers/pm/exec.c
servers/pm/forkexit.c
servers/pm/main.c
servers/pm/signal.c
servers/pm/trace.c