[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 8/9] alpha-linux-user: Properly handle the non-r
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 8/9] alpha-linux-user: Properly handle the non-rt sigprocmask syscall. |
Date: |
Fri, 22 Jun 2012 15:27:28 +0100 |
On 7 June 2012 23:24, Richard Henderson <address@hidden> wrote:
> @@ -5880,12 +5880,13 @@ abi_long do_syscall(void *cpu_env, int num, abi_long
> arg1,
> mask = arg2;
> target_to_host_old_sigset(&set, &mask);
>
> - ret = get_errno(sigprocmask(how, &set, &oldset));
> -
> - if (!is_error(ret)) {
> + ret = sigprocmask(how, &set, &oldset);
> + if (is_error(ret)) {
> + ret = get_errno(ret);
> + } else {
This looks kinda bogus. get_errno() is supposed to be used on
something which is a (value-or-negative-for-target-errno) value,
eg what you get out of get_errno(). If you're just testing the
straight return value from the host sigprocmask() then
"if (ret == -1)" or similar would be better.
-- PMM
- Re: [Qemu-devel] [PATCH 2/9] alpha-linux-user: Work around hosted mmap allocation problems, (continued)
- [Qemu-devel] [PATCH 3/9] alpha-linux-user: Handle TARGET_SSI_IEEE_RAISE_EXCEPTION properly, Richard Henderson, 2012/06/07
- [Qemu-devel] [PATCH 6/9] linux-user: Translate pipe2 flags; add to strace, Richard Henderson, 2012/06/07
- [Qemu-devel] [PATCH 5/9] linux-user: Allocate the right amount of space for non-fixed file maps, Richard Henderson, 2012/06/07
- [Qemu-devel] [PATCH 4/9] linux-user: Handle O_SYNC, O_NOATIME, O_CLOEXEC, O_PATH, Richard Henderson, 2012/06/07
- [Qemu-devel] [PATCH 7/9] alpha-linux-user: Fix a3 error return with v0 error bypass., Richard Henderson, 2012/06/07
- [Qemu-devel] [PATCH 9/9] alpha-linux-user: Fix the getpriority syscall, Richard Henderson, 2012/06/07
- [Qemu-devel] [PATCH 8/9] alpha-linux-user: Properly handle the non-rt sigprocmask syscall., Richard Henderson, 2012/06/07
- Re: [Qemu-devel] [PATCH 8/9] alpha-linux-user: Properly handle the non-rt sigprocmask syscall.,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v3 0/9] {alpha-}linux user improvements, Richard Henderson, 2012/06/12