Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2000 10:21:16 -0500
From:      "Yevmenkin, Maksim N, CSCIO" <myevmenkin@att.com>
To:        "'freebsd-current@freebsd.org'" <freebsd-current@freebsd.org>
Cc:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   BPF bug or not?
Message-ID:  <E598F159668DD311B9C700902799EAF4473376@njb140po01.ems.att.com>

next in thread | raw e-mail | index | archive | help
All,

I've just found that read from /dev/bpfX never return EAGAIN/EWOULDBLOCK.
It means that when you do a non blocking read and there is no data you will
always get 0.

Does it suppose work this way?

A non blocking read from pipe return EAGAIN/EWOULDBLOCK if there is no data
and
pipe was opened as O_RDWR, and 0 when pipe was opened as O_RDONLY.

Thanks,
emax


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E598F159668DD311B9C700902799EAF4473376>