diff options
author | jhb <jhb@FreeBSD.org> | 2001-09-21 22:22:25 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-09-21 22:22:25 +0000 |
commit | d125564db20cb6d3532e714e2375492ca45ff873 (patch) | |
tree | e1730c7830eb6d3a1f1eeaed3ec697eb8bd70c14 /sys/kern/tty_pty.c | |
parent | 2d99ad9e116e74f67a4742b94bf35e2881491e78 (diff) | |
download | FreeBSD-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.c | 4 |
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); |