mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 22:12:43 +00:00
Fix some untidy logic. I committed the wrong local fix; please pass the pointy hat.
Approved by: so (/dev/random blanket)
This commit is contained in:
parent
847adfb7b3
commit
eda4aaeb3f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285700
@ -183,7 +183,7 @@ read_random_uio(struct uio *uio, bool nonblock)
|
||||
printf("random: %s unblock wait\n", __func__);
|
||||
spamcount = (spamcount + 1)%100;
|
||||
error = tsleep(&random_alg_context, PCATCH, "randseed", hz/10);
|
||||
if ((error == ERESTART | error == EINTR))
|
||||
if (error == ERESTART || error == EINTR)
|
||||
break;
|
||||
}
|
||||
if (error == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user