[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kern/38527: /dev/random does not obey O_NONBLOCK flag
- Subject: kern/38527: /dev/random does not obey O_NONBLOCK flag
- From: bob at norcalttora.com (Bob Van Zant)
- Date: Sun Oct 17 11:30:37 2004
The following reply was made to PR kern/38527; it has been noted by GNATS.
From: Bob Van Zant <bob_(_at_)_norcalttora_(_dot_)_com>
To: freebsd-gnats-submit_(_at_)_FreeBSD_(_dot_)_org, gson_(_at_)_nominum_(_dot_)_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
Visit your host, monkey.org