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:
parent
2d99ad9e11
commit
d125564db2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user