From: Michael Kerrisk Date: Tue, 27 Jan 2015 09:22:32 +0000 (+0100) Subject: getrandom.2: NOTES: clarify discussion of EINTR error X-Git-Tag: man-pages-3.79~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05e4d7afa92354052a16c0923b2c8aa521f9c41c;p=thirdparty%2Fman-pages.git getrandom.2: NOTES: clarify discussion of EINTR error Signed-off-by: Michael Kerrisk --- diff --git a/man2/getrandom.2 b/man2/getrandom.2 index be6cedd4f8..3531f25b9d 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