From ed01445d8fef7073d654de0f4ef50405221591e2 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 21 Sep 2001 22:46:54 +0000 Subject: Use the passed in thread to selrecord() instead of curthread. --- sys/dev/random/randomdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/random') diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 868d72fe0110..a0bd578c76c9 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -224,7 +224,7 @@ random_poll(dev_t dev, int events, struct thread *td) if (random_systat.seeded) revents = events & (POLLIN | POLLRDNORM); else - selrecord(curthread, &random_systat.rsel); + selrecord(td, &random_systat.rsel); } return revents; } -- cgit v1.3