diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-24 00:58:56 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-24 00:58:56 +0000 |
commit | d071f665295ee2ef0626072d8311e01b1102803f (patch) | |
tree | be05cd1920cccda5749ebc349bb5d810c2dd42f6 /sys/kern/sys_generic.c | |
parent | 0ec985aaf0fb250ec3531dee93ea4bb29038ed19 (diff) |
Rename pfind(9) into tfind(9) to reflect that it deals with threads.
While here document prfind(9.
with and ok guenther@
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r-- | sys/kern/sys_generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index cf08a3022be..b1d3f7b6951 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_generic.c,v 1.113 2016/11/07 00:26:33 guenther Exp $ */ +/* $OpenBSD: sys_generic.c,v 1.114 2017/01/24 00:58:55 mpi Exp $ */ /* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */ /* @@ -783,7 +783,7 @@ selrecord(struct proc *selector, struct selinfo *sip) mytid = selector->p_tid; if (sip->si_seltid == mytid) return; - if (sip->si_seltid && (p = pfind(sip->si_seltid)) && + if (sip->si_seltid && (p = tfind(sip->si_seltid)) && p->p_wchan == (caddr_t)&selwait) sip->si_flags |= SI_COLL; else @@ -807,7 +807,7 @@ selwakeup(struct selinfo *sip) sip->si_flags &= ~SI_COLL; wakeup(&selwait); } - p = pfind(sip->si_seltid); + p = tfind(sip->si_seltid); sip->si_seltid = 0; if (p != NULL) { SCHED_LOCK(s); |