summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-09-21 22:22:25 +0000
committerjhb <jhb@FreeBSD.org>2001-09-21 22:22:25 +0000
commitd125564db20cb6d3532e714e2375492ca45ff873 (patch)
treee1730c7830eb6d3a1f1eeaed3ec697eb8bd70c14 /sys/kern/tty_pty.c
parent2d99ad9e116e74f67a4742b94bf35e2881491e78 (diff)
downloadFreeBSD-src-d125564db20cb6d3532e714e2375492ca45ff873.zip
FreeBSD-src-d125564db20cb6d3532e714e2375492ca45ff873.tar.gz
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.
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