From 05e4d7afa92354052a16c0923b2c8aa521f9c41c Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 27 Jan 2015 10:22:32 +0100 Subject: [PATCH] getrandom.2: NOTES: clarify discussion of EINTR error Signed-off-by: Michael Kerrisk --- man2/getrandom.2 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/man2/getrandom.2 b/man2/getrandom.2 index be6cedd4f..3531f25b9 100644 --- a/man2/getrandom.2 +++ b/man2/getrandom.2 @@ -191,11 +191,15 @@ is interrupted by a signal handler depends on the initialization state of the entropy buffer and on the request size, .IR buflen . -If the entropy is not yet initialized or the request size is large -.RI ( buflen "\ >\ 256)," -then the call will fail with the +If the entropy is not yet initialized, then the call will fail with the .B EINTR error. +If the entropy pool has been initialized +and the request size is large +.RI ( buflen "\ >\ 256)," +the call either succeeds, returning a partially filled buffer, +or fails with the error +.BR EINTR. If the entropy pool has been initialized and the request size is small .RI ( buflen "\ <=\ 256)," then