Message ID | 1308242235-8261-4-git-send-email-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | bc088ba1db4ec9e5c3bc3e6b2bac816673d9cbdd |
Headers | show |
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f3d03b0..2635b75 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7058,7 +7058,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, case TARGET_NR_osf_sigprocmask: { abi_ulong mask; - int how = arg1; + int how; sigset_t set, oldset; switch(arg1) { @@ -7077,7 +7077,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, } mask = arg2; target_to_host_old_sigset(&set, &mask); - sigprocmask(arg1, &set, &oldset); + sigprocmask(how, &set, &oldset); host_to_target_old_sigset(&mask, &oldset); ret = mask; }