Date: Sun, 17 Dec 2000 12:50:23 -0800 (PST) From: John Polstra <jdp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bpf.c Message-ID: <200012172050.eBHKoOS42738@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jdp 2000/12/17 12:50:23 PST
Modified files:
sys/net bpf.c
Log:
Fix bug: a read() on a bpf device which was in non-blocking mode
and had no data available returned 0. Now it returns -1 with errno
set to EWOULDBLOCK (== EAGAIN) as it should. This fix makes the bpf
device usable in threaded programs.
Reviewed by: bde
Revision Changes Path
1.72 +7 -6 src/sys/net/bpf.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012172050.eBHKoOS42738>
