Skip to content

Commit

Permalink
rngd_jitter: replace non standard pthread_yield with sched_yield
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-lunghi authored Jun 5, 2019
1 parent 4cfb882 commit 96f1f4d
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 96f1f4d

Please sign in to comment.