[prev in list] [next in list] [prev in thread] [next in thread]
List: bind9-users
Subject: Re: Warning on Freebsd 4.0
From: Jakob Schlyter <jakob () crt ! se>
Date: 2000-07-19 14:08:38
[Download RAW message or body]
On Wed, 19 Jul 2000, Pedro Goncalves wrote:
> When i run named... this message is shown in the syslog
>
> Jul 19 10:13:54 srv-ipv6 named[5910]: entropy.c:937:
> unexpected error:
> Jul 19 10:13:54 srv-ipv6 named[5910]: fcntl(8, F_SETFL,
> 4): Inappropriate ioctl for device
We had a similar with OpenBSD. The following patch was applied
to src/sys/dev/rnd.c.
--- rnd.c 2000/06/16 19:18:51 1.40
+++ rnd.c 2000/06/18 16:32:19 1.41
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.40 2000/06/16 19:18:51 deraadt Exp $ */
+/* $OpenBSD: rnd.c,v 1.41 2000/06/18 16:32:19 millert Exp $ */
/*
* random.c -- A strong random number generator
@@ -1048,6 +1048,14 @@
add_timer_randomness((u_long)p ^ (u_long)data ^ cmd);
switch (cmd) {
+ case FIOASYNC:
+ /* rnd has no async flag in softc so this is really a
no-op. */
+ break;
+
+ case FIONBIO:
+ /* Handled in the upper FS layer. */
+ break;
+
case RNDGETENTCNT:
ret = copyout(&random_state.entropy_count, data,
sizeof(random_state.entropy_count));
/Jakob
--
Jakob Schlyter <jakob@crt.se> Network Analyst
Phone: +46 31 701 42 13, +46 70 595 07 94 Carlstedt Research & Technology
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic