Bug#380640: cupsys - blocks on read of /dev/random
At Mon, 31 Jul 2006 15:24:46 +0000,
Bastian Blank wrote:
> On Tue, Aug 01, 2006 at 12:04:01AM +0900, Kenshi Muto wrote:
> > At Mon, 31 Jul 2006 13:58:20 +0000,
> > > cupsd blocks if it can't read enough from /dev/random on startup.
> > Could you tell me how to reproduce it?
>
> This is the wrong code. It opens /dev/random and tries to get 300 bytes
> from it in a timeout loop.
I'm sorry, but I can't understand this meaning.
1. Any code of CUPS doesn't use /dev/random. Only cert.c uses
/dev/urandom instead of it.
2. I couldn't catch meanings of "300 bytes" and "timeout loop".
cert.c gets 4 bytes from /dev/urandom in the straight procedure.
3. If /dev/urandom doesn't exist, time-based seed generator will be
called.
Could you tell me more information? Do I miss something?
Thanks,
--
Kenshi Muto
kmuto@debian.org
Reply to: