getrandom.2: Reword GRND_NONBLOCK description

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-11-11 11:22:07 +01:00
parent 7028ce50ab
commit d2a1b46b62
1 changed files with 7 additions and 7 deletions

View File

@ -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
blocks until data is available.
If the
.B GRND_NONBLOCK
flag is set, then
.BR getrandom ()
instead immediately returns -1 with
.I errno
set to
.BR EAGAIN .
If the
.B GRND_NONBLOCK
bit is not set and there is no random byte available at all,
.BR getrandom ()
will block.
.SH RETURN VALUE
On success,
.BR getrandom ()