Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 10:18:10 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209934 - head/sys/ddb
Message-ID:  <201007121018.o6CAIAwQ066863@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jul 12 10:18:10 2010
New Revision: 209934
URL: http://svn.freebsd.org/changeset/base/209934

Log:
  One more use for _SIG_VALID.
  
  Submitted by:	Garrett Cooper <yanegomi gmail com>
  MFC after:	1 week

Modified:
  head/sys/ddb/db_command.c

Modified: head/sys/ddb/db_command.c
==============================================================================
--- head/sys/ddb/db_command.c	Mon Jul 12 10:15:33 2010	(r209933)
+++ head/sys/ddb/db_command.c	Mon Jul 12 10:18:10 2010	(r209934)
@@ -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"));
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007121018.o6CAIAwQ066863>