From c2764719914ff0c4d6c06adafea17629600f21ba Mon Sep 17 00:00:00 2001 From: pbrook Date: Sat, 7 Mar 2009 15:24:59 +0000 Subject: The _exit syscall is used for both thread termination in NPTL applications, and process termination in legacy applications. Try to guess which we want based on the presence of multiple threads. Also implement locking when modifying the CPU list. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6735 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user/signal.c') diff --git a/linux-user/signal.c b/linux-user/signal.c index 4f3741e912..48640ec835 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2691,7 +2691,7 @@ static int setup_sigcontext(struct target_sigcontext *sc, return err; } -static int restore_sigcontext(struct CPUState *regs, +static int restore_sigcontext(CPUState *regs, struct target_sigcontext *sc) { unsigned int err = 0; -- cgit v1.2.3-55-g7522