Home GnuPG

Fix a problem with select and high fds.
061b11de6041Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix a problem with select and high fds.

If on systems where the maximum number of fds may be dynamically
configured to a value of FD_MAXSIZE or higher and the RNG is first
used after more than FD_SETSIZE-1 descriptors are in use, we disable
the progress messages from the RNG. A better solution would be too
use poll but that requires more tests.

The same problem exists in rndunix.c - however this rng is only used
on old Unices and I assume that they don't feature dynamically
configured maximum fd sizes.

Details

Provenance
wernerAuthored on Sep 8 2011, 10:53 AM
Parents
rC674f10dba527: Fixed a bug in the gcry_cipher_get_algo_keylen and gcry_cipher_get_algo_blklen
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC061b11de6041: Fix a problem with select and high fds. (authored by Werner Koch <wk@gnupg.org>).Sep 8 2011, 11:01 AM