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:
jhb 2001-09-21 22:22:25 +00:00
parent 2d99ad9e11
commit d125564db2

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);