Uses O_NONBLOCK instead of O_NDELAY
FossilOrigin-Name: 45c5fb207834cf1c55917bfed3d403a537e92bc25f28dc971b04ca5393515c8d
This commit is contained in:
parent
d603e05c6b
commit
8c9d3f8129
@ -38,7 +38,7 @@ int cw_rand_r(uint8_t * dst, int len)
|
||||
int rf;
|
||||
int l;
|
||||
|
||||
rf = open(cw_rand_dev, O_RDONLY | O_NDELAY);
|
||||
rf = open(cw_rand_dev, O_RDONLY | O_NONBLOCK);
|
||||
if (rf < 0) {
|
||||
|
||||
cw_log(LOG_ERR, "Can't open %s: %s", cw_rand_dev, strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user