804. [bug] Attempting to obtain entropy could fail in some

situations.  This would be most common on systems
			with user-space threads. [RT #1131]
This commit is contained in:
Brian Wellington 2001-04-04 20:57:35 +00:00
parent 55ddb88e53
commit f8b3c62794
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
804. [bug] Attempting to obtain entropy could fail in some
situations. This would be most common on systems
with user-space threads. [RT #1131]
803. [bug] Treat all SIG queries as if they have the CD bit set,
otherwise no data will be returned [RT #749]

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: entropy.c,v 1.57 2001/02/05 23:00:18 bwelling Exp $ */
/* $Id: entropy.c,v 1.58 2001/04/04 20:57:35 bwelling Exp $ */
#include <config.h>
@ -395,7 +395,7 @@ get_from_filesource(isc_entropysource_t *source, isc_uint32_t desired) {
ndesired = ISC_MIN(desired, sizeof(buf));
n = read(fd, buf, ndesired);
if (n < 0) {
if (errno == EAGAIN)
if (errno == EAGAIN || errno == EINTR)
goto out;
close(fd);
source->bad = ISC_TRUE;