linux-user: fix TARGET_NSIG and _NSIG uses
commit9fcff3a67f2be53de2d9b27c270ba2a4ecba8810
authorLaurent Vivier <laurent@vivier.eu>
Wed, 12 Feb 2020 12:56:57 +0000 (12 13:56 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 12 Feb 2020 17:56:38 +0000 (12 18:56 +0100)
tree441bd784f03e608a88706d3790939acd14759e65
parent365510fb860a91dbead7d6c9e5815ef9d4e72062
linux-user: fix TARGET_NSIG and _NSIG uses

Valid signal numbers are between 1 (SIGHUP) and SIGRTMAX.

System includes define _NSIG to SIGRTMAX + 1, but
QEMU (like kernel) defines TARGET_NSIG to TARGET_SIGRTMAX.

Fix all the checks involving the signal range.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20200212125658.644558-4-laurent@vivier.eu>
linux-user/signal.c