diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-06-19 11:46:01 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-06-19 11:46:01 +0000 |
commit | cff5ee8c12bc60ca59651abb691f2234432234f6 (patch) | |
tree | 7724dc65d631e7b9275c1aa015011b0b72da6534 /sys/compat | |
parent | d84071e0246a78a2caac70dc4c13f09c72229615 (diff) |
Set the appropiate return value on futex wait.
Okay jasper@
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_futex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 17d79dde945..510d6705a85 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_futex.c,v 1.7 2012/06/19 11:45:05 pirofti Exp $ */ +/* $OpenBSD: linux_futex.c,v 1.8 2012/06/19 11:46:00 pirofti Exp $ */ /* $NetBSD: linux_futex.c,v 1.26 2010/07/07 01:30:35 chs Exp $ */ /*- @@ -232,6 +232,7 @@ linux_do_futex(struct proc *p, const struct linux_sys_futex_args *uap, DPRINTF(("FUTEX_WAIT %d: Woke up from uaddr %8.8X with " "ret = %d\n", tid, SCARG(uap, uaddr), ret)); + *retval = ret ? -1 : 0; switch (ret) { case EWOULDBLOCK: /* timeout */ return ETIMEDOUT; |