summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_acl_aclcheck_fd.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2001-05-20 23:08:33 +0000
committerjasone <jasone@FreeBSD.org>2001-05-20 23:08:33 +0000
commitadf603d4b170a8622047e0fd342070ac6f07caf4 (patch)
treec37f9e05a6d81f226bfef98090c73e613802b9c7 /lib/libpthread/thread/thr_acl_aclcheck_fd.c
parentcdb5d97b478a3e4f97dd6c0cd43105d0951daed5 (diff)
downloadFreeBSD-src-adf603d4b170a8622047e0fd342070ac6f07caf4.zip
FreeBSD-src-adf603d4b170a8622047e0fd342070ac6f07caf4.tar.gz
Instead of using a join queue for each thread, use a single pointer to
keep track of a joiner. POSIX only supports a single joiner, so this simplification is acceptable. At the same time, make sure to mark a joined thread as detached so that its resources can be freed. Reviewed by: deischen PR: 24345
Diffstat (limited to 'lib/libpthread/thread/thr_acl_aclcheck_fd.c')
-rw-r--r--lib/libpthread/thread/thr_acl_aclcheck_fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_acl_aclcheck_fd.c b/lib/libpthread/thread/thr_acl_aclcheck_fd.c
index f282490..19e9aaa 100644
--- a/lib/libpthread/thread/thr_acl_aclcheck_fd.c
+++ b/lib/libpthread/thread/thr_acl_aclcheck_fd.c
@@ -39,7 +39,7 @@ ___acl_aclcheck_fd(int fd, acl_type_t tp, acl_t acl)
int error;
if ((error = _FD_LOCK(fd, FD_READ, NULL)) == 0) {
- error = __sys___acl_aclcheck_fd(fd, tp, acl);
+ error = __sys___acl_aclcheck_fd(fd, tp, (struct acl *)acl);
_FD_UNLOCK(fd, FD_READ);
}
return (error);
OpenPOWER on IntegriCloud