diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-22 17:01:20 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-22 17:01:20 +0000 |
commit | fa760cfb01223f333a8553566d845b7a462c459b (patch) | |
tree | 20c7093841e3bf7445fb2c628a4334bc3ead221a /packages/qemu/files/11_signal_sigaction.patch | |
parent | e398e9063c713cb73ea3cc19aecc8d9138d6acf9 (diff) | |
parent | 70e5cf9476598fdf441d22adfd166e3ee90ae4c8 (diff) |
merge of '4ceb0ef60a086087bfe7a232b07d6fb71c3ccd04'
and 'eaf6fede3ee9af7cea4d430e426ee09da45e8f21'
Diffstat (limited to 'packages/qemu/files/11_signal_sigaction.patch')
-rw-r--r-- | packages/qemu/files/11_signal_sigaction.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/qemu/files/11_signal_sigaction.patch b/packages/qemu/files/11_signal_sigaction.patch new file mode 100644 index 0000000000..5446efc562 --- /dev/null +++ b/packages/qemu/files/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-06-13 11:51:54.000000000 +0100 ++++ linux-user/signal.c 2007-06-13 11:52:20.000000000 +0100 +@@ -429,6 +429,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", |