Home GnuPG

random: Use poll instead of select.

Description

random: Use poll instead of select.

* random/rndlinux.c (open_device): Use poll.
(_gcry_rndlinux_gather_random): Use poll.

Merging a patch for Fedora/RedHat for _gcry_rndlinux_gather_random.

Also change open_device for completeness. Use of sleep(3) would be OK
here, but it may use SIGALRM on some systems, which is not good as a
library.

  • GnuPG-bug-id: T5637
  • Co-authored-by: Tomáš Mráz <tm@t8m.info>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 5 2021, 8:28 AM
Parents
rC94c923436715: doc: Address the bug on AArch64 in README.
Branches
Unknown
Tags
Unknown
Tasks
T5637: Use poll for libgcrypt (support more than 1024 fds)