From d2a1b46b6299cfe362e9cf1382da35c7b1af854e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 11 Nov 2014 11:22:07 +0100 Subject: [PATCH] getrandom.2: Reword GRND_NONBLOCK description Signed-off-by: Michael Kerrisk --- man2/getrandom.2 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 () -- 2.47.2