From owner-freebsd-bugs@FreeBSD.ORG Sun Oct 17 18:30:34 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B47D16A4CE for ; Sun, 17 Oct 2004 18:30:34 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E29D43D39 for ; Sun, 17 Oct 2004 18:30:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9HIUYKf015950 for ; Sun, 17 Oct 2004 18:30:34 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9HIUYlA015949; Sun, 17 Oct 2004 18:30:34 GMT (envelope-from gnats) Date: Sun, 17 Oct 2004 18:30:34 GMT Message-Id: <200410171830.i9HIUYlA015949@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Bob Van Zant Subject: Re: kern/38527: /dev/random does not obey O_NONBLOCK flag X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Bob Van Zant List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 18:30:34 -0000 The following reply was made to PR kern/38527; it has been noted by GNATS. From: Bob Van Zant 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