summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_umtx.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-01-18 13:53:10 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-01-18 13:53:10 +0000
commitb3a53fc0e61db0db29d06418cb57c6714f273863 (patch)
treed9420e1af067a0e9da1eb384d1ace85f57b5d7c1 /sys/kern/kern_umtx.c
parent7f3c7f0d461522fe0390e72d21fa729bed8807bf (diff)
downloadFreeBSD-src-b3a53fc0e61db0db29d06418cb57c6714f273863.zip
FreeBSD-src-b3a53fc0e61db0db29d06418cb57c6714f273863.tar.gz
Revert my previous errno hack, that is certainly an issue,
and always has been, but the system call itself returns errno in a register so the problem is really a function of libc, not the system call. Discussed with : Matthew Dillion <dillon@apollo.backplane.com>
Diffstat (limited to 'sys/kern/kern_umtx.c')
-rw-r--r--sys/kern/kern_umtx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 1e93a66..31a5cb1 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -756,6 +756,5 @@ _umtx_op(struct thread *td, struct _umtx_op_args *uap)
error = EINVAL;
break;
}
- td->td_retval[0] = -error;
- return (0);
+ return (error);
}
OpenPOWER on IntegriCloud