* [Qemu-devel] [PATCH] linux-user: sig is target signal
@ 2008-11-23 21:36 Riku Voipio
0 siblings, 0 replies; only message in thread
From: Riku Voipio @ 2008-11-23 21:36 UTC (permalink / raw)
To: qemu-devel
compare SIGSTOP and SIGKILL uniformly against the target
signal number. Replaces Debian patch 11_signal_sigaction
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-23 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-23 21:36 [Qemu-devel] [PATCH] linux-user: sig is target signal Riku Voipio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.