From: Michael Kerrisk Date: Tue, 11 Nov 2014 10:22:07 +0000 (+0100) Subject: getrandom.2: Reword GRND_NONBLOCK description X-Git-Tag: man-pages-3.79~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2a1b46b6299cfe362e9cf1382da35c7b1af854e;p=thirdparty%2Fman-pages.git getrandom.2: Reword GRND_NONBLOCK description Signed-off-by: Michael Kerrisk --- diff --git a/man2/getrandom.2 b/man2/getrandom.2 index 19db95753a..c6be50dd93 100644 --- a/man2/getrandom.2 +++ b/man2/getrandom.2 @@ -96,17 +96,17 @@ in the argument. .TP .B GRND_NONBLOCK -If this bit is set and there is no random byte available at all, +By default, if there is no random byte available at all, .BR getrandom () -will return -1 with -.I errno -set to -.BR EAGAIN . +blocks until data is available. If the .B GRND_NONBLOCK -bit is not set and there is no random byte available at all, +flag is set, then .BR getrandom () -will block. +instead immediately returns -1 with +.I errno +set to +.BR EAGAIN . .SH RETURN VALUE On success, .BR getrandom ()