summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-07-12 10:18:10 +0000
committerkib <kib@FreeBSD.org>2010-07-12 10:18:10 +0000
commitf37b51f2667361ea39f13a08d0a3eac695c9b19b (patch)
tree4b46c39457ec38d3db3c756e30e94dd8ce49fed1 /sys/ddb
parent48eef70c5e666b73b64ec34176bd925ea2720f50 (diff)
downloadFreeBSD-src-f37b51f2667361ea39f13a08d0a3eac695c9b19b.zip
FreeBSD-src-f37b51f2667361ea39f13a08d0a3eac695c9b19b.tar.gz
One more use for _SIG_VALID.
Submitted by: Garrett Cooper <yanegomi gmail com> MFC after: 1 week
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 7c7f54e..7fab5c2 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -633,7 +633,7 @@ db_kill(dummy1, dummy2, dummy3, dummy4)
if (!db_expression(&pid))
DB_ERROR(("Missing process ID\n"));
db_skip_to_eol();
- if (sig < 1 || sig > _SIG_MAXSIG)
+ if (!_SIG_VALID(sig))
DB_ERROR(("Signal number out of range\n"));
/*
OpenPOWER on IntegriCloud