Skip to content

Commit

Permalink
Merge pull request #64 from nicola-lunghi/patch-1
Browse files Browse the repository at this point in the history
rngd_jitter: replace non standard pthread_yield with sched_yield
  • Loading branch information
nhorman authored Jun 5, 2019
2 parents 4cfb882 + 96f1f4d commit aabc8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rngd_jitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int xread_jitter(void *buf, size_t size, struct rng *ent_src)
} else if (request < need) {
if (request == -1) {
message(LOG_DAEMON|LOG_DEBUG, "failed read: %s\n", strerror(errno));
pthread_yield();
sched_yield();
} else
message(LOG_DAEMON|LOG_DEBUG, "request of random data returns %ld less than need %ld\n",
request, need);
Expand Down

0 comments on commit aabc8c7

Please sign in to comment.