From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4Mcw-00065n-Tw for qemu-devel@nongnu.org; Sun, 23 Nov 2008 16:36:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4Mcu-00065b-Ek for qemu-devel@nongnu.org; Sun, 23 Nov 2008 16:36:21 -0500 Received: from [199.232.76.173] (port=37387 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4Mcu-00065Y-92 for qemu-devel@nongnu.org; Sun, 23 Nov 2008 16:36:20 -0500 Received: from [84.20.150.76] (port=38835 helo=narury.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L4Mct-0005O7-TO for qemu-devel@nongnu.org; Sun, 23 Nov 2008 16:36:20 -0500 Received: from kos.to (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by narury.org (Postfix) with ESMTP id 7E3113274003 for ; Sun, 23 Nov 2008 23:36:12 +0200 (EET) Date: Sun, 23 Nov 2008 23:36:12 +0200 From: Riku Voipio Message-ID: <20081123213612.GA15854@kos.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] linux-user: sig is target signal Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org compare SIGSTOP and SIGKILL uniformly against the target signal number. Replaces Debian patch 11_signal_sigaction Signed-off-by: Riku Voipio --- linux-user/signal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index cce4922..e0f6aaf 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -507,7 +507,7 @@ int do_sigaction(int sig, const struct target_sigaction *act, int host_sig; int ret = 0; - if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP) + if (sig < 1 || sig > TARGET_NSIG || sig == TARGET_SIGKILL || sig == TARGET_SIGSTOP) return -EINVAL; k = &sigact_table[sig - 1]; #if defined(DEBUG_SIGNAL) -- 1.5.6.5 -- "rm -rf" only sounds scary if you don't have backups