Use the passed in thread pointer instead of curthread in calls to

selrecord() in ptcpoll().  The pre-KSE code used the passed in proc pointer
rather than curproc, and an earlier seltrue() call uses the passed in
thread and not curthread.
This commit is contained in:
John Baldwin 2001-09-21 22:22:25 +00:00
parent f0a538a587
commit 456ca585db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83803

View File

@ -513,10 +513,10 @@ ptcpoll(dev, events, td)
if (revents == 0) {
if (events & (POLLIN | POLLRDNORM))
selrecord(curthread, &pti->pt_selr);
selrecord(td, &pti->pt_selr);
if (events & (POLLOUT | POLLWRNORM))
selrecord(curthread, &pti->pt_selw);
selrecord(td, &pti->pt_selw);
}
splx(s);