Date: Sun, 17 Oct 2004 18:30:34 GMT From: Bob Van Zant <bob@norcalttora.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/38527: /dev/random does not obey O_NONBLOCK flag Message-ID: <200410171830.i9HIUYlA015949@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/38527; it has been noted by GNATS. From: Bob Van Zant <bob@norcalttora.com> To: freebsd-gnats-submit@FreeBSD.org, gson@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410171830.i9HIUYlA015949>