When killing a user process from DDB, check that the requested signal is

> 0 rather than >= 0, or we will panic when trying to deliver the signal.

MFC after:	3 days
PR:		100802
Submitted by:	Valerio Daelli <valerio.daelli at gmail.com>
This commit is contained in:
Robert Watson 2008-03-07 14:26:30 +00:00
parent ce6d690203
commit 3755dbd805
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176897

View File

@ -599,7 +599,7 @@ db_kill(dummy1, dummy2, dummy3, dummy4)
if (!db_expression(&pid))
DB_ERROR(("Missing process ID\n"));
db_skip_to_eol();
if (sig < 0 || sig > _SIG_MAXSIG)
if (sig < 1 || sig > _SIG_MAXSIG)
DB_ERROR(("Signal number out of range\n"));
/*