Merge db_command.c from HEAD to RELENG_6:
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. PR: 100802 Submitted by: Valerio Daelli <valerio.daelli at gmail.com>
This commit is contained in:
parent
e3589b2a7f
commit
fd324744cb
@ -577,7 +577,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…
x
Reference in New Issue
Block a user