summaryrefslogtreecommitdiff
path: root/packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-01-01 21:50:19 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-01-01 21:50:19 +0000
commit8f9e46740b16defbebb955752a317137121e0b85 (patch)
treec2dc70860a9f39aeded0bb6277704e0deb269078 /packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch
parent0db3fd6f76f6c403ba2fb8fe3a11149dda22e7c1 (diff)
parent919c87c0767a6f43d7865d23a1458879e660339a (diff)
merge of '0d9bd56d97ada159199c80422a743fbaa437a818'
and '7c47cd537d8cebaa3111aa836db24534a39b5ed9'
Diffstat (limited to 'packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch')
-rw-r--r--packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch b/packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch
new file mode 100644
index 0000000000..33c5e8b12d
--- /dev/null
+++ b/packages/qemu/qemu-0.9.0+cvs20071121/11_signal_sigaction.patch
@@ -0,0 +1,21 @@
+#DPATCHLEVEL=0
+---
+# linux-user/signal.c | 5 +++++
+# 1 file changed, 5 insertions(+)
+#
+Index: linux-user/signal.c
+===================================================================
+--- linux-user/signal.c.orig 2007-12-03 23:47:44.000000000 +0000
++++ linux-user/signal.c 2007-12-03 23:47:46.000000000 +0000
+@@ -512,6 +512,11 @@ int do_sigaction(int sig, const struct t
+
+ if (sig < 1 || sig > TARGET_NSIG || sig == SIGKILL || sig == SIGSTOP)
+ return -EINVAL;
++
++ /* no point doing the stuff as those are not allowed for sigaction */
++ if ((sig == TARGET_SIGKILL) || (sig == TARGET_SIGSTOP))
++ return -EINVAL;
++
+ k = &sigact_table[sig - 1];
+ #if defined(DEBUG_SIGNAL)
+ fprintf(stderr, "sigaction sig=%d act=0x%08x, oact=0x%08x\n",