From owner-cvs-all Sun Dec 17 12:50:27 2000 From owner-cvs-all@FreeBSD.ORG Sun Dec 17 12:50:24 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 274FF37B400; Sun, 17 Dec 2000 12:50:24 -0800 (PST) Received: (from jdp@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBHKoOS42738; Sun, 17 Dec 2000 12:50:24 -0800 (PST) (envelope-from jdp) Message-Id: <200012172050.eBHKoOS42738@freefall.freebsd.org> From: John Polstra Date: Sun, 17 Dec 2000 12:50:23 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bpf.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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