Delay NSS initialization until actually used
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Jan 2009 11:17:22 +0000 (13:17 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Jan 2009 11:17:22 +0000 (13:17 +0200)
commit5ff05aec30ddceb0fc8f2ecd7797aa7bdc9bc96d
tree0d5371d1fd42a07d0723c7eb0535f15c09cc5fd5
parentc895fb1541f5edbdc53eb6d70eb6157566e6e528
Delay NSS initialization until actually used
- since NSS is allergic (ie becomes non-functional) after forking, delay
  it's initialization until really needed, ie lazy init in rpmDigestInit()
- however as NSS init can fail if attempted in completely empty chroot,
  we force crypto init to happen at transaction set create time, forking
  past that is pretty much doomed anyway
- this is the other half of the fix for rhbz#476737, and similar case
  noticed by Pixel in Mandriva (due to urpm forking)
lib/rpmrc.c
lib/rpmts.c
rpmio/digest.c
tools/debugedit.c