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:
parent
ce6d690203
commit
3755dbd805
@ -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"));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user