diff options
author | jhb <jhb@FreeBSD.org> | 2002-02-27 19:14:01 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-02-27 19:14:01 +0000 |
commit | 8205940b14ff69474255c80c81d6342e117997ab (patch) | |
tree | 39db6cb167594186374e338ed9433c5fcd80e6dd /sys/kern/uipc_usrreq.c | |
parent | 9fbc6e93de5a6d93c811ff7ab26c7612604f0512 (diff) | |
download | FreeBSD-src-8205940b14ff69474255c80c81d6342e117997ab.zip FreeBSD-src-8205940b14ff69474255c80c81d6342e117997ab.tar.gz |
- Change unp_listen() to accept a thread rather than a proc as its second
argument.
- Use td_ucred in unp_listen() instead of p_ucred.
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index ee2829e..5f46c89 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -93,7 +93,7 @@ static void unp_mark __P((struct file *)); static void unp_discard __P((struct file *)); static void unp_freerights __P((struct file **, int)); static int unp_internalize __P((struct mbuf **, struct thread *)); -static int unp_listen __P((struct unpcb *, struct proc *)); +static int unp_listen __P((struct unpcb *, struct thread *)); static int uipc_abort(struct socket *so) @@ -204,7 +204,7 @@ uipc_listen(struct socket *so, struct thread *td) if (unp == 0 || unp->unp_vnode == 0) return EINVAL; - return unp_listen(unp, td->td_proc); + return unp_listen(unp, td); } static int @@ -1418,12 +1418,12 @@ unp_dispose(m) } static int -unp_listen(unp, p) +unp_listen(unp, td) struct unpcb *unp; - struct proc *p; + struct thread *td; { - cru2x(p->p_ucred, &unp->unp_peercred); + cru2x(td->td_ucred, &unp->unp_peercred); unp->unp_flags |= UNP_HAVEPCCACHED; return (0); } |