diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-08-23 11:47:15 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-08-23 11:47:15 +0000 |
commit | f1d0d79f48ab191a1ed0b5065e39046e1d95fef4 (patch) | |
tree | 860036a8554d604726a256d7408c711df834b7cb /packages/qemu/files/11_signal_sigaction.patch | |
parent | 2534c12ac4c879178132751e51db09c6e4f22cf9 (diff) | |
parent | 958b8822656bed6e5526f9441fea36570787f9c7 (diff) |
merge of '88dd6a801655485b76bb6d591c1f763d51ff47b8'
and 'ea2a23cae4f4d939a07f699c39b603c4c2559ad1'
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", |