summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 68e93a9..a01d04e 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -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);
OpenPOWER on IntegriCloud