summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-10 08:30:07 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-10 08:30:07 +0000
commitd1a700a42b22fe592cd6e4322010662ba62d58b1 (patch)
tree84322201f6b83fee2504d893298e20f40b1fbc37 /meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch
parentfb45df81fcce89a0481deb15bab4bbac5c83a30e (diff)
downloadpoky-d1a700a42b22fe592cd6e4322010662ba62d58b1.tar.gz
qemu: Update cvs version to 20080308
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4223 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch')
-rw-r--r--meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch b/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch
new file mode 100644
index 0000000000..34282adc9d
--- /dev/null
+++ b/meta/packages/qemu/qemu-native-0.9.1+cvs20080307/10_signal_jobs.patch
@@ -0,0 +1,26 @@
1#DPATCHLEVEL=0
2---
3# linux-user/signal.c | 7 ++++++-
4# 1 file changed, 6 insertions(+), 1 deletion(-)
5#
6Index: linux-user/signal.c
7===================================================================
8--- linux-user/signal.c.orig 2007-12-03 15:40:26.000000000 +0000
9+++ linux-user/signal.c 2007-12-03 15:55:49.000000000 +0000
10@@ -364,10 +364,15 @@ int queue_signal(int sig, target_siginfo
11 k = &sigact_table[sig - 1];
12 handler = k->sa._sa_handler;
13 if (handler == TARGET_SIG_DFL) {
14+ if (sig == TARGET_SIGTSTP || sig == TARGET_SIGTTIN || sig == TARGET_SIGTTOU) {
15+ kill(getpid(),SIGSTOP);
16+ return 0;
17+ } else
18 /* default handler : ignore some signal. The other are fatal */
19 if (sig != TARGET_SIGCHLD &&
20 sig != TARGET_SIGURG &&
21- sig != TARGET_SIGWINCH) {
22+ sig != TARGET_SIGWINCH &&
23+ sig != TARGET_SIGCONT) {
24 force_sig(sig);
25 } else {
26 return 0; /* indicate ignored */