Remove fd caching since we don't have unload (deconstructor) support
commit745193e10c88f2bc2176c3b585caf2088d09af01
authorLove Hornquist Astrand <lha@h5l.org>
Thu, 26 Nov 2009 18:06:22 +0000 (26 10:06 -0800)
committerLove Hornquist Astrand <lha@h5l.org>
Thu, 26 Nov 2009 18:11:41 +0000 (26 10:11 -0800)
tree701823a64402f29be81d9e8f4a7df832d9b076cd
parent0f11c52a6cb171e7cffc07404067c501bc991c82
Remove fd caching since we don't have unload (deconstructor) support

basiclly this is reverting 164c99a4b414b614e5185a96ef8287331e9134eb

the problem is when an application is using PAM loaded and unloaded
and over again, the file descriptior never get closed on unload of the
pam module. If main app already uses Heimdal, Heimdal doesn't get
unloaded, but in some scenarios this happen more often.

Since we now use fortuna for our internal random generator, this is
not that bad.

Bug found by Victor Guerra.
lib/hcrypto/rand-unix.c