Date: Thu, 15 Aug 2002 16:30:03 -0700 (PDT) From: Nate Lawson <nate@root.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/36219: poll() behaves erratic on BPF file descriptors. Message-ID: <200208152330.g7FNU3IS043435@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/36219; it has been noted by GNATS. From: Nate Lawson <nate@root.org> To: freebsd-gnats-submit@FreeBSD.org, vlm@netli.com, gad@freebsd.org Cc: bde@freebsd.org Subject: Re: kern/36219: poll() behaves erratic on BPF file descriptors. Date: Thu, 15 Aug 2002 16:20:34 -0700 (PDT) I looked over the current state of bpf.c and it seems like this PR can be closed. Comments? if (events & (POLLIN | POLLRDNORM)) { /* * An imitation of the FIONREAD ioctl code. * XXX not quite. An exact imitation: *if (d->b_slen != 0 || * (d->bd_hbuf != NULL && d->bd_hlen != 0) */ if (d->bd_hlen != 0 || ((d->bd_immediate || d->bd_state == BPF_TIMED_OUT) && d->bd_slen != 0)) revents |= events & (POLLIN | POLLRDNORM); else { -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208152330.g7FNU3IS043435>