Re: short read from /dev/urandom
From: H. Peter Anvin
Date: Sat Jan 15 2005 - 22:19:24 EST
Matt Mackall wrote:
What about signals to a process blocked on /dev/random (which also has no
documented mention of being interruptible by signals)?
Not handling short reads is always a bug.
Agreed it is. All I was saying was that I could see a *small* exception
(like PIPE_BUF) for /dev/urandom.
Sleeping would be utterly unacceptable.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/