From 3755dbd80523db102c6d324cbcdc1277c9b4388b Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 7 Mar 2008 14:26:30 +0000 Subject: [PATCH] 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 --- sys/ddb/db_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 5ebcc15642a..db6dc24774c 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -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")); /*