From 69b2d3f3db54f4cde3dd60308204bdabacae595d Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 21 Sep 2001 22:46:54 +0000 Subject: Use the passed in thread to selrecord() instead of curthread. --- sys/net/bpf.c | 2 +- sys/net/if_tap.c | 2 +- sys/net/if_tun.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net') diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 874fcb6..68e5308 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -990,7 +990,7 @@ bpfpoll(dev, events, td) if (d->bd_hlen != 0 || (d->bd_immediate && d->bd_slen != 0)) revents |= events & (POLLIN | POLLRDNORM); else - selrecord(curthread, &d->bd_sel); + selrecord(td, &d->bd_sel); } BPFD_UNLOCK(d); return (revents); diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index f41fbd3..b20de71 100644 --- a/sys/net/if_tap.c +++ b/sys/net/if_tap.c @@ -935,7 +935,7 @@ tappoll(dev, events, td) TAPDEBUG("%s%d waiting for data, minor = %#x\n", ifp->if_name, ifp->if_unit, minor(dev)); - selrecord(curthread, &tp->tap_rsel); + selrecord(td, &tp->tap_rsel); } } diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 92bf7f6..20f7437 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -809,7 +809,7 @@ tunpoll(dev_t dev, int events, struct thread *td) } else { TUNDEBUG("%s%d: tunpoll waiting\n", ifp->if_name, ifp->if_unit); - selrecord(curthread, &tp->tun_rsel); + selrecord(td, &tp->tun_rsel); } } if (events & (POLLOUT | POLLWRNORM)) -- cgit v1.1