kern/38527: /dev/random does not obey O_NONBLOCK flag
Bob Van Zant
bob at norcalttora.com
Sun Oct 17 11:30:34 PDT 2004
The following reply was made to PR kern/38527; it has been noted by GNATS.
From: Bob Van Zant <bob at norcalttora.com>
To: freebsd-gnats-submit at FreeBSD.org, gson at nominum.com
Cc:
Subject: Re: kern/38527: /dev/random does not obey O_NONBLOCK flag
Date: Sun, 17 Oct 2004 11:26:08 -0700
This bug appears to have been fixed. Or, at a minimum, the repro steps
fail to reproduce the problem on 5.3-beta5.
A brief code inspection of randomdev.c shows that the read function now
has logic to handle blocking. It even appears that it will return
EWOULDBLOCK if you have opened with the non-blocking option and no data
is available.
Someone else might want to take a brief look at this, verify it and
close it.
-Bob
More information about the freebsd-bugs
mailing list